few questions bellow:
On 10 янв, 21:38, mdipierro <mdipie...@cs.depaul.edu> wrote:
> There are two new features in trunk. One will probably stay, the other
> I do not know:
>
> 1) Before you could do
>
>     db.define_table('person',Field('name'),format='%(name)s')
>     db.define_table('dog',Field('name'),Field('owner',db.dog))
db.dog.owner refs to ?! self
>
> now you can also have things like
>
>     format=lambda person: person.name.capitalize()
What is the person is? db.person[id] or id of a row?
-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to