Exemplo n.º 1
0
 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_)
Exemplo n.º 2
0
    def order_baptism(tables):
        pool = Pool()
        Group = pool.get('tmi.meta.group')
        group = Group.__table__()
        table, _ = tables[None]

        return [CharLength(table.name), table.name]
Exemplo n.º 3
0
 def order_code(tables):
     table, _ = tables[None]
     return [CharLength(table.code), table.code]
Exemplo n.º 4
0
 def order_month(cls, tables):
     table, _ = tables[None]
     return [CharLength(table.month_internal), table.month_internal]
Exemplo n.º 5
0
 def order_week(cls, tables):
     table, _ = tables[None]
     return [CharLength(table.week_internal), table.week_internal]
Exemplo n.º 6
0
 def order_legajo(tables):
     table, _ = tables[None]
     return [CharLength(table.legajo), table.legajo]