Hi, lets say I have:

db.define_table('Person',
    Field('name', 'string'),
    format="%(name)s"
    # or could be
    # format=lambda self: self.name or "Anonymous"
)

whats the best way to apply format
if I don't know which way format was specified?

for string: 
   db.Shops._format %  db.Person[x]  

for lambda: 
   db.Shops._format( db.Person[x]  )

I could make some helper function, but maybe there's a direct way?

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to