From 6dc79da61aa74353c73ca4999991bfa145ad14b4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bartek=20G=C3=B3rny?= <bartek@gorny.edu.pl>
Date: Fri, 9 Feb 2007 16:56:14 +0000
Subject: [PATCH] fixed calling workflow actions

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12612 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/ExternalDocument.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/product/ERP5/Document/ExternalDocument.py b/product/ERP5/Document/ExternalDocument.py
index 9606924875..754c4b21f9 100644
--- a/product/ERP5/Document/ExternalDocument.py
+++ b/product/ERP5/Document/ExternalDocument.py
@@ -132,23 +132,23 @@ class ExternalDocument(Document):
     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')
-- 
2.30.9