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