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

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

Loading…
Cancel
Save