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')
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)
def __init__(self, context, name=None, version=None): Task.__init__(self, context) self.spec = 'ajenti.plugin.%s==%s' % (name, version)
def __init__(self, context, items=None): Task.__init__(self, context) self.items = items
def __init__(self, context, destination=None, items=None): Task.__init__(self, context) self.destination = destination self.items = items
def __init__(self, context, *args, **kwargs): print args, kwargs Task.__init__(self, context)
def __init__(self, context, name=None, version=None): Task.__init__(self, context) self.spec = f'ajenti.plugin.{name}=={version}'
def __init__(self, context, name=None): Task.__init__(self, context) self.spec = f'ajenti.plugin.{name}'