From 8c991007362173a62a7715e87203459e2d0082ba Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Wed, 12 May 2010 12:45:37 +0000 Subject: [PATCH] Add optional format parameter to specify an extension of the returned filename git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35203 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/interfaces/downloadable.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/product/ERP5/interfaces/downloadable.py b/product/ERP5/interfaces/downloadable.py index 2de4acaf96..803db3365b 100644 --- a/product/ERP5/interfaces/downloadable.py +++ b/product/ERP5/interfaces/downloadable.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- ############################################################################## # -# Copyright (c) 2009 Nexedi SA and Contributors. All Rights Reserved. +# Copyright (c) 2010 Nexedi SA and Contributors. All Rights Reserved. # Jean-Paul Smets-Solanes <jp@nexedi.com> # # WARNING: This program as such is intended to be used by professional @@ -52,9 +52,11 @@ class IDownloadable(Interface): kw -- optional conversion parameters """ - def getStandardFileName(): + def getStandardFileName(format=None): """ Returns a standard file name for the document to download. This method is the reverse of IMetadataDiscoverable.getPropertyDictFromFileName. - """ \ No newline at end of file + + format -- extension of returned file name + """ -- 2.30.9