Hi together,
I´m a beginner of coding web2py and now I have (I think) a little
problem:
After a successfull login the user gets shown a new page calls
menu.html.
he can there create new projects. Therefore I create a new table:
db.define_table('project',
SQLField('userid'),
SQLField('pname'),
SQLField('pstart','date', default=now),
SQLField('pend','date', default=now),
SQLField('closed','boolean', default=False),
SQLField('cdate','datetime',default=now),
SQLField('description','text'))
ok i know the usersid from the auth-Object. on the procect page the
user shoult insert projectname, start, end and desicription in
textfields, but i will insert automaticly the userid in the table. how
and where can i insert Constants in the table like --> userid =
{{=auth.user.id}}
thanks a lot for your help
greets
peter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---