import openerp.pooler as pooler
class workflow_service(netsvc.Service):
+ """
+ Sometimes you might want to fire a signal or re-evaluate the current state
+ of a workflow using the service's API. You can access the workflow services
+ using:
+
+ >>> import netsvc
+ >>> wf_service = netsvc.LocalService("workflow")
+
+ """
- def __init__(self, name='workflow', audience='*'):
- netsvc.Service.__init__(self, name, audience)
- self.exportMethod(self.trg_write)
- self.exportMethod(self.trg_delete)
- self.exportMethod(self.trg_create)
- self.exportMethod(self.trg_validate)
- self.exportMethod(self.trg_redirect)
- self.exportMethod(self.trg_trigger)
- self.exportMethod(self.clear_cache)
++
+ def __init__(self, name='workflow'):
+ netsvc.Service.__init__(self, name)
self.wkf_on_create_cache={}
def clear_cache(self, cr, uid):