[open-ils-commits] r758 - constrictor/trunk/contrib/evergreen (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jan 15 14:49:41 EST 2010
Author: erickson
Date: 2010-01-15 14:49:37 -0500 (Fri, 15 Jan 2010)
New Revision: 758
Modified:
constrictor/trunk/contrib/evergreen/eg_fetch_user_groups.py
Log:
updated to use simplified inline tasks
Modified: constrictor/trunk/contrib/evergreen/eg_fetch_user_groups.py
===================================================================
--- constrictor/trunk/contrib/evergreen/eg_fetch_user_groups.py 2010-01-15 19:43:17 UTC (rev 757)
+++ constrictor/trunk/contrib/evergreen/eg_fetch_user_groups.py 2010-01-15 19:49:37 UTC (rev 758)
@@ -6,7 +6,6 @@
SERVICE = 'open-ils.actor'
METHOD = 'open-ils.actor.groups.tree.retrieve'
-
class FetchUserGroupsTask(Task):
def __init__(self):
@@ -16,17 +15,13 @@
request = eg_utils.request(SERVICE, METHOD)
return request.send()
-
-eg_utils.init()
-fetchGroupsTask = FetchUserGroupsTask().wrap()
-
-
class FetchUserGroupsScript(Script):
def run(self):
- res = fetchGroupsTask.run()
+ res = FetchUserGroupsTask().start()
logInfo('Fetched group tree with root "%s"' % res.name())
return True
+eg_utils.init()
ScriptManager.go(FetchUserGroupsScript())
More information about the open-ils-commits
mailing list