[Erp5-report] r35297 nicolas - /erp5/trunk/products/ERP5/mixin/base_convertable.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu May 13 12:05:25 CEST 2010


Author: nicolas
Date: Thu May 13 12:05:24 2010
New Revision: 35297

URL: http://svn.erp5.org?rev=35297&view=rev
Log:
Resurect convertFile definition explicitely.
Because some TempObject instances are not associated 
to processing_status_workflow.

temp_object.getPortalType() == 'OOo Document'


Modified:
    erp5/trunk/products/ERP5/mixin/base_convertable.py

Modified: erp5/trunk/products/ERP5/mixin/base_convertable.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/mixin/base_convertable.py?rev=35297&r1=35296&r2=35297&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/mixin/base_convertable.py [utf8] (original)
+++ erp5/trunk/products/ERP5/mixin/base_convertable.py [utf8] Thu May 13 12:05:24 2010
@@ -59,3 +59,11 @@
     """
     """
     raise NotImplementedError
+
+  def convertFile(self, **kw):
+    """
+    Workflow transition invoked when conversion occurs.
+    Usefull for document instances which are not associated
+    to processing_status_workflow like TempObject.
+    """
+  convertFile = WorkflowMethod(convertFile)




More information about the Erp5-report mailing list