|
|
|
@ -256,19 +256,22 @@ def InitCollector():
|
|
|
|
|
a = {'apps':'actor.Apps','mailer':'actor.Mailer','folders':'actor.Folders'}
|
|
|
|
|
lagents = []
|
|
|
|
|
lactors = []
|
|
|
|
|
|
|
|
|
|
for id in m :
|
|
|
|
|
if id in body :
|
|
|
|
|
agent = eval(m[id]+"()")
|
|
|
|
|
actor = eval(a[id]+"()")
|
|
|
|
|
|
|
|
|
|
args = body[id] if id in body else None
|
|
|
|
|
if args is not None :
|
|
|
|
|
agent.init(args)
|
|
|
|
|
|
|
|
|
|
lagents.append(agent)
|
|
|
|
|
lactors.append(actor)
|
|
|
|
|
#
|
|
|
|
|
# We should insure the user has access to actors :
|
|
|
|
|
#
|
|
|
|
|
if id in a :
|
|
|
|
|
actor = eval(a[id]+"()")
|
|
|
|
|
print agent
|
|
|
|
|
print actor
|
|
|
|
|
#lactors.append(actor)
|
|
|
|
|
|
|
|
|
|
config = dict(CONFIG)
|
|
|
|
|
#
|
|
|
|
|
# @TODO: The database name should be provided by the active plan
|
|
|
|
@ -280,7 +283,7 @@ def InitCollector():
|
|
|
|
|
manager.init(actors = lactors,agents=lagents,config=config,key=key,node=node) ;
|
|
|
|
|
r = [pickle.dumps(manager)]
|
|
|
|
|
except Exception,e:
|
|
|
|
|
print '***** ',e
|
|
|
|
|
print '***** ',str(e)
|
|
|
|
|
return json.dumps(r)
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|