Commit 8c991007 authored by Nicolas Delaby's avatar Nicolas Delaby

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
parent ed5caaa2
# -*- coding: utf-8 -*- # -*- 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> # Jean-Paul Smets-Solanes <jp@nexedi.com>
# #
# WARNING: This program as such is intended to be used by professional # WARNING: This program as such is intended to be used by professional
...@@ -52,9 +52,11 @@ class IDownloadable(Interface): ...@@ -52,9 +52,11 @@ class IDownloadable(Interface):
kw -- optional conversion parameters kw -- optional conversion parameters
""" """
def getStandardFileName(): def getStandardFileName(format=None):
""" """
Returns a standard file name for the document to download. Returns a standard file name for the document to download.
This method is the reverse of This method is the reverse of
IMetadataDiscoverable.getPropertyDictFromFileName. IMetadataDiscoverable.getPropertyDictFromFileName.
"""
\ No newline at end of file format -- extension of returned file name
"""
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment