Tip on declaring tables

27 views
Skip to first unread message

António Ramos

unread,
Mar 5, 2020, 7:19:45 AM3/5/20
to web...@googlegroups.com
Hello just wondering if declaring a variable for each table is of any concern in the context of many tables and many controllers and models.
Regards
EquipArea = db.define_table(app+'area'
    Field('nome''string'length=35requires=IS_NOT_EMPTY()), 
    Field('descricao','string',label ='Descrição',length=155), 
    Field('outros','string'length=255),  
    Field('empresa''reference ' + app + 'empresa'label='Empresa'), format = '%(nome)s:%(descricao)s' )

Reply all
Reply to author
Forward
0 new messages