Index: /WAeUP_SRP/trunk/WAeUPTool.py
===================================================================
--- /WAeUP_SRP/trunk/WAeUPTool.py	(revision 5222)
+++ /WAeUP_SRP/trunk/WAeUPTool.py	(revision 5223)
@@ -1932,17 +1932,17 @@
 
 
-    security.declareProtected(ModifyPortalContent,"changeWorkflowState")
+    security.declarePublic("changeWorkflowState")
     def changeWorkflowState(self, content, state_id, acquire_permissions=False,
                             portal_workflow=None, **kw):
-        """Change the workflow state of an object
-        @param content: Content obj which state will be changed
-        @param state_id: name of the state to put on content
-        @param acquire_permissions: True->All permissions unchecked and on riles and
-                                    acquired
-                                    False->Applies new state security map
-        @param portal_workflow: Provide workflow tool (optimisation) if known
-        @param kw: change the values of same name of the state mapping
-        @return: None
-        """
+        #Change the workflow state of an object
+        #@param content: Content obj which state will be changed
+        #@param state_id: name of the state to put on content
+        #@param acquire_permissions: True->All permissions unchecked and on riles and
+        #                            acquired
+        #                            False->Applies new state security map
+        #@param portal_workflow: Provide workflow tool (optimisation) if known
+        #@param kw: change the values of same name of the state mapping
+        #@return: None
+        
     
         if portal_workflow is None:
Index: /WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py	(revision 5222)
+++ /WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py	(revision 5223)
@@ -85,5 +85,5 @@
     d['Title'] = 'Payments'
     payments.getContent().edit(mapping=d)
-    wftool.doActionFor(payments,'open')
+    context.waeup_tool.changeWorkflowState(payments, 'opened')
 else:
     payments = getattr(student,'payments')
@@ -118,11 +118,11 @@
     payment = getattr(payments,p_id)
     wftool = context.portal_workflow
-    wftool.doActionFor(payment,'open')
+    context.waeup_tool.changeWorkflowState(payment, 'opened')
     payment.getContent().edit(mapping=info)
-    wftool.doActionFor(payment,'close')
+    context.waeup_tool.changeWorkflowState(payment, 'closed')
 
     study_course = getattr(student,'study_course')
     try:
-        wftool.doActionFor(study_course,'open')
+        context.waeup_tool.changeWorkflowState(study_course, 'opened')
     except:
         pass
