That is not the example I sent. If you plan to do it with IS_IN_DB you
should try

db.todos.category.requires=IS_IN_DB(db,db.categories.id,'%(name)s')
db.todos.category.default = 1

where "1" is the id of the db.category.id that should be selected.

Massimo


On Oct 14, 11:47 am, Keith Edmunds <[EMAIL PROTECTED]> wrote:
> On Tue, 14 Oct 2008 09:09:51 -0700 (PDT), [EMAIL PROTECTED] said:
>
> > let me know if it does not.
>
> It doesn't.
>
> I have:
>
> --------------------------------------------------------------------------------
> db.todos.category.requires=IS_IN_DB(db,db.categories.id,\
>                                       '%(name)s')
> db.todos.category.default = "Now"
> --------------------------------------------------------------------------------
>
> I'd rather be able to (easily) select the default from the database, but
> even putting that to one side, the above doesn't work (the values of the
> categories are "Now" and "Later").
>
> Thanks,
> Keith
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to