say you have an app called myapp with a table
db.define_table('a',SQLField('dts','datetime'))

from the shell try:

pytho web2py.py -S myapp -M
>>> print db.tables
>>> print db.a
>>> print db.a.dts
>>> print db.a.dts.day()
>>> print request.now
>>> print request.now.day




On Apr 26, 6:37 am, weheh <richard_gor...@verizon.net> wrote:
> Yes, however could you state this for me more formally? Such as "day
> ()" is a method of the class field, which is instantiated here as
> dts ...? It helps me to understand what's going on under the hood of
> web2py. Thx.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@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