[Erp5-report] r35203 nicolas - /erp5/trunk/products/ERP5/interfaces/downloadable.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed May 12 14:45:41 CEST 2010


Author: nicolas
Date: Wed May 12 14:45:37 2010
New Revision: 35203

URL: http://svn.erp5.org?rev=35203&view=rev
Log:
Add optional format parameter to specify an extension
of the returned filename

Modified:
    erp5/trunk/products/ERP5/interfaces/downloadable.py

Modified: erp5/trunk/products/ERP5/interfaces/downloadable.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/interfaces/downloadable.py?rev=35203&r1=35202&r2=35203&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/interfaces/downloadable.py [utf8] (original)
+++ erp5/trunk/products/ERP5/interfaces/downloadable.py [utf8] Wed May 12 14:45:37 2010
@@ -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 at nexedi.com>
 #
 # WARNING: This program as such is intended to be used by professional
@@ -52,9 +52,11 @@
     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.
-    """ 
+
+    format -- extension of returned file name
+    """




More information about the Erp5-report mailing list