Example #1
0
File: tasks.py Project: Mu-L/ajenti
 def __init__(self, context, manager_id=None):
     Task.__init__(self, context)
     for mgr in PackageManager.all(self.context):
         if mgr.id == manager_id:
             self.manager = mgr
             break
     else:
         logging.error(f'Package manager {manager_id} not found')
Example #2
0
 def __init__(self, context, manager_id=None):
     Task.__init__(self, context)
     for mgr in PackageManager.all(self.context):
         if mgr.id == manager_id:
             self.manager = mgr
             break
     else:
         logging.error('Package manager %s not found', manager_id)
Example #3
0
 def __init__(self, context, name=None, version=None):
     Task.__init__(self, context)
     self.spec = 'ajenti.plugin.%s==%s' % (name, version)
Example #4
0
 def __init__(self, context, items=None):
     Task.__init__(self, context)
     self.items = items
Example #5
0
 def __init__(self, context, destination=None, items=None):
     Task.__init__(self, context)
     self.destination = destination
     self.items = items
Example #6
0
 def __init__(self, context, *args, **kwargs):
     print args, kwargs
     Task.__init__(self, context)
Example #7
0
 def __init__(self, context, name=None, version=None):
     Task.__init__(self, context)
     self.spec = f'ajenti.plugin.{name}=={version}'
Example #8
0
 def __init__(self, context, name=None):
     Task.__init__(self, context)
     self.spec = f'ajenti.plugin.{name}'
Example #9
0
 def __init__(self, context, name=None, version=None):
     Task.__init__(self, context)
     self.spec = 'ajenti.plugin.%s==%s' % (name, version)
Example #10
0
 def __init__(self, context, *args, **kwargs):
     print args, kwargs
     Task.__init__(self, context)