def mysql_args(self): if len(self.args) == 3: string, placing, from_ = self.args for_ = CharLength(placing) else: string, placing, from_, for_ = self.args return (string, from_, placing, string, from_, for_)
def order_baptism(tables): pool = Pool() Group = pool.get('tmi.meta.group') group = Group.__table__() table, _ = tables[None] return [CharLength(table.name), table.name]
def order_code(tables): table, _ = tables[None] return [CharLength(table.code), table.code]
def order_month(cls, tables): table, _ = tables[None] return [CharLength(table.month_internal), table.month_internal]
def order_week(cls, tables): table, _ = tables[None] return [CharLength(table.week_internal), table.week_internal]
def order_legajo(tables): table, _ = tables[None] return [CharLength(table.legajo), table.legajo]