def __init__(self, config, tags, params):
        Command.__init__(self)
        self.config = config
        self.tags = tags
        self.params = params or UpdateCommandParams(False)

        self.__updating_list = []
Beispiel #2
0
 def __init__(self, config):
     Command.__init__(self)
     self.config = config
     self.response = {
         'invalid_grant': (
             False, None, [UsernameOption(), PasswordOption()]),
         'invalid_client': (
             False, None, [ClientOption(), SecretOption()])
     }
Beispiel #3
0
    def __init__(self, config, params):
        Command.__init__(self)
        self.config = config
        self.params = params

        self.__get_anno = {
                AnnoSubcommand.LIST: self.__get_anno_string,
                AnnoSubcommand.SHOW: self.__get_anno_full
        }
Beispiel #4
0
    def __init__(self, config, params=None):
        Command.__init__(self)
        self.config = config
        self.params = params if params else TagsCommandParams()

        self.runner = {
            TagsSubcommand.LIST: self.__subcommand_list,
            TagsSubcommand.ADD: self.__subcommand_add,
            TagsSubcommand.REMOVE: self.__subcommand_remove
        }
Beispiel #5
0
 def __init__(self, config, params):
     Command.__init__(self)
     self.config = config
     self.params = params
Beispiel #6
0
 def __init__(self, config, params):
     Command.__init__(self)
     self.config = config
     self.params = params if params else InfoCommandParams(None)
Beispiel #7
0
 def __init__(self, config, params=None):
     Command.__init__(self)
     self.config = config
     self.params = params or ListParams()
Beispiel #8
0
 def __init__(self, config, entry_id, params):
     Command.__init__(self)
     self.config = config
     self.entry_id = entry_id
     self.params = params or UpdateCommandParams()
Beispiel #9
0
 def __init__(self, config, params):
     Command.__init__(self)
     self.config = config
     self.params = params or DeleteCommandParams()
Beispiel #10
0
 def __init__(self, config, params=None):
     Command.__init__(self)
     self.config = config
     self.params = params if params else DeleteByTagsParams()