def create(self, parser_name): if parser_name.islower(): parser_name = tools.key2hump(parser_name) parser_template = self.get_parser_template() parser = self.create_parser(parser_template, parser_name) self.save_parser_to_file(parser, parser_name)
def table_name(self, name): self.__table_name__ = name self.__name__ = tools.key2hump(name) + "Item"