[Erp5-report] r40963 nicolas - /erp5/trunk/products/ERP5/PropertySheet/Data.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Dec 1 15:27:12 CET 2010
Author: nicolas
Date: Wed Dec 1 15:27:12 2010
New Revision: 40963
URL: http://svn.erp5.org?rev=40963&view=rev
Log:
Add new property filename, because URL and filename does not store same values.
DMS was storing filename value in source_reference property, this will change, filename
will be used explicitely.
Warning: For consistency all variables or methods with id file_name or FileName
will be deprecated.
Methods will only receive filename as named argument and Filename as token in method name.
- getPropertyDictFromFilename
- getStandardFilename
- ...
Modified:
erp5/trunk/products/ERP5/PropertySheet/Data.py
Modified: erp5/trunk/products/ERP5/PropertySheet/Data.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/PropertySheet/Data.py?rev=40963&r1=40962&r2=40963&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/PropertySheet/Data.py [utf8] (original)
+++ erp5/trunk/products/ERP5/PropertySheet/Data.py [utf8] Wed Dec 1 15:27:12 2010
@@ -44,6 +44,14 @@ class Data:
'type' : 'string',
'default' : 'application/unknown',
'mode' : 'w' },
+ # Syntax of filename property is published by
+ # Dublin Core DCMI Administrative Metadata.
+ # final version dated of 28 October 2003 can be found at url:
+ # http://dublincore.org/usage/meetings/2009/10/seoul/acore.pdf
+ { 'id' : 'filename',
+ 'description' : 'Name of provided file from where data come from',
+ 'type' : 'string',
+ 'mode' : 'w' },
{ 'id' : 'size',
'description' : 'Size in bytes of the data',
'type' : 'int',
More information about the Erp5-report
mailing list