|
|
|
@ -55,8 +55,9 @@ class Manager() :
|
|
|
|
|
self.LIMIT = -1
|
|
|
|
|
|
|
|
|
|
#self.filter(meta)
|
|
|
|
|
self.filter('agents',meta,self.agents)
|
|
|
|
|
self.filter('actors',meta,self.actors)
|
|
|
|
|
meta = meta[0]
|
|
|
|
|
self.agents = self.filter('agents',meta,self.agents)
|
|
|
|
|
self.actors = self.filter('actors',meta,self.actors)
|
|
|
|
|
self.setup(meta)
|
|
|
|
|
|
|
|
|
|
def filter_collectors(self,meta) :
|
|
|
|
@ -78,7 +79,7 @@ class Manager() :
|
|
|
|
|
|
|
|
|
|
def filter(self,id,meta,objects):
|
|
|
|
|
values = meta[id].replace(' ','').split(',')
|
|
|
|
|
return [item for item in objects if object.getName() in values]
|
|
|
|
|
return [item for item in objects if item.getName() in values]
|
|
|
|
|
def __filter(self,meta) :
|
|
|
|
|
scope = []
|
|
|
|
|
lactors= []
|
|
|
|
@ -138,8 +139,8 @@ class Manager() :
|
|
|
|
|
if len(args.keys()) > 0 :
|
|
|
|
|
self.apply_setup('apps',args)
|
|
|
|
|
args = couchdb.view('config/folders',key=self.key)
|
|
|
|
|
if 'folder_threshold' not in meta :
|
|
|
|
|
args['threshold'] = meta['folder_threshold']
|
|
|
|
|
if 'folder_size' not in meta :
|
|
|
|
|
args['threshold'] = meta['folder_size']
|
|
|
|
|
self.apply_setup('folders',args)
|
|
|
|
|
|
|
|
|
|
def apply_setup(self,name,args) :
|
|
|
|
|