def parse(self, path): if len(path) < 2: raise SyntaxErrorWrongNumberOfArguments(self.__class__.__name__, hints=CommandFactory().get_class_children( self.__class__.__name__)) url = path[0] next_step = CommandFactory().get_class(self.__class__.__name__, path[1], self.result_collector) path = path[2:] path.insert(0, url) return next_step.parse(path)
def parse(self, path): if len(path) < 2: raise SyntaxErrorWrongNumberOfArguments(self.__class__.__name__, 'At least 2 arguments expected. ' + self.pretty_name + ' is not valid command.', CommandFactory().get_class_children( self.__class__.__name__)) url = path[0] next_step = CommandFactory().get_class(self.__class__.__name__, path[1], self.result_collector) path = path[2:] path.insert(0, url) return next_step.parse(path)
def parse(self, path): if len(path) < 2: raise SyntaxErrorWrongNumberOfArguments( self.__class__.__name__, 'At least 2 arguments expected. ' + self.pretty_name + ' is not valid command.', CommandFactory().get_class_children(self.__class__.__name__)) url = path[0] next_step = CommandFactory().get_class(self.__class__.__name__, path[1], self.result_collector) path = path[2:] path.insert(0, url) return next_step.parse(path)
def parse(self, path): if len(path) < 2: raise SyntaxErrorWrongNumberOfArguments( self.__class__.__name__, hints=CommandFactory().get_class_children( self.__class__.__name__)) url = path[0] next_step = CommandFactory().get_class(self.__class__.__name__, path[1], self.result_collector) path = path[2:] path.insert(0, url) return next_step.parse(path)