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

        self.__updating_list = []
Exemple #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()])
     }
Exemple #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
        }
Exemple #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
        }
Exemple #5
0
 def __init__(self, config, params):
     Command.__init__(self)
     self.config = config
     self.params = params
Exemple #6
0
 def __init__(self, config, params):
     Command.__init__(self)
     self.config = config
     self.params = params if params else InfoCommandParams(None)
Exemple #7
0
 def __init__(self, config, params=None):
     Command.__init__(self)
     self.config = config
     self.params = params or ListParams()
Exemple #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()
Exemple #9
0
 def __init__(self, config, params):
     Command.__init__(self)
     self.config = config
     self.params = params or DeleteCommandParams()
Exemple #10
0
 def __init__(self, config, params=None):
     Command.__init__(self)
     self.config = config
     self.params = params if params else DeleteByTagsParams()