CO - Bug found not fixed

community
Gogs 7 years ago
parent c94ef4eb67
commit f2d1e0501a

@ -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)
"""

@ -185,7 +185,7 @@ class Folders(Actor):
"""
def init(self,**args):
Actor.init(self,config,item)
Actor.init(self)
#self.lfolders = args['folders'] #config['folders']
#self.action = args['action'] #{clear,archive} config['actions']['folders']
self.threshold = self.get_size( args['threshold']) #self.config['threshold'])

Loading…
Cancel
Save