Commit ae32219e authored by Jean-Paul Smets's avatar Jean-Paul Smets

allow user scripts to call activate()


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@342 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6a94bb6e
......@@ -28,6 +28,7 @@
from Products.CMFCore import CMFCorePermissions
from Products.ERP5Type.Document.Folder import Folder
from Products.PythonScripts.Utility import allow_class
from AccessControl import ClassSecurityInfo
from Products.CMFCore.utils import UniqueObject, _checkPermission, _getAuthenticatedUser
from Globals import InitializeClass, DTMLFile, get_request
......@@ -35,6 +36,7 @@ from Acquisition import aq_base
from DateTime.DateTime import DateTime
import threading
from zLOG import LOG
# Using a RAM property (not a property of an instance) allows
......@@ -108,6 +110,8 @@ class Method:
m = Message(self.__passive_self, self.__active_process, self.__kw, self.__method_id, args, kw)
activity_dict[self.__activity].queueMessage(self.__passive_self.portal_activities, m)
allow_class(Method)
class ActiveWrapper:
def __init__(self, passive_self, activity, active_process, **kw):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment