[Erp5-report] r12612 - /erp5/trunk/products/ERP5/Document/ExternalDocument.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 9 17:56:17 CET 2007


Author: bartek
Date: Fri Feb  9 17:56:14 2007
New Revision: 12612

URL: http://svn.erp5.org?rev=12612&view=rev
Log:
fixed calling workflow actions

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

Modified: erp5/trunk/products/ERP5/Document/ExternalDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/ExternalDocument.py?rev=12612&r1=12611&r2=12612&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/ExternalDocument.py (original)
+++ erp5/trunk/products/ERP5/Document/ExternalDocument.py Fri Feb  9 17:56:14 2007
@@ -132,23 +132,23 @@
     except Exception,e:
       self.log(e,level=1)
       msg = "Tried on %s: %s" % (self._time(),str(e))
-      portal_workflow.doActionFor(context, 'process', comment=msg)
+      portal_workflow.doActionFor(self, 'process', comment=msg)
       return False
     chars=len(s)
     if chars==0:
       msg = "Tried on %s: got empty string" % self._time() 
-      portal_workflow.doActionFor(context, 'process', comment=msg)
+      portal_workflow.doActionFor(self, 'process', comment=msg)
       return False
     try:
       s=self._processData(s,inf)
     except Exception,e:
       self.log(e,level=1)
       msg = "Spidered on %s, %i chars, but could not process; reason: %s" % (self._time(), chars, str(e))
-      portal_workflow.doActionFor(context, 'process', comment=msg)
+      portal_workflow.doActionFor(self, 'process', comment=msg)
       return False
     self.setTextContent(s)
     msg = "Spidered on %s, %i chars, recorded %i chars" % (self._time(), chars, len(s))
-    portal_workflow.doActionFor(context, 'process', comment=msg)
+    portal_workflow.doActionFor(self, 'process', comment=msg)
     return True
 
   security.declareProtected(Permissions.View, 'getProtocolItemList')




More information about the Erp5-report mailing list