[Erp5-report] r18415 - /erp5/trunk/products/ERP5/Document/File.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Dec 19 15:14:00 CET 2007


Author: yusei
Date: Wed Dec 19 15:14:00 2007
New Revision: 18415

URL: http://svn.erp5.org?rev=18415&view=rev
Log:
Fixed my syntax mistake...

Modified:
    erp5/trunk/products/ERP5/Document/File.py

Modified: erp5/trunk/products/ERP5/Document/File.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/File.py?rev=18415&r1=18414&r2=18415&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/File.py (original)
+++ erp5/trunk/products/ERP5/Document/File.py Wed Dec 19 15:14:00 2007
@@ -122,7 +122,7 @@
         filename = getattr(file, 'filename', None)
         # if file field is empty(no file is uploaded),
         # filename is empty string.
-        if filename is not in (None, ''):
+        if filename not in (None, ''):
           kw['source_reference'] = filename
       del kw['file']
     Base._edit(self, **kw)




More information about the Erp5-report mailing list