Hello,
I have the example:
db.define_table("book",
SQLField("author","string",length=200,notnull=True,default=""),
SQLField("title","string",length=200,notnull=True,default=""),
SQLField("volume","string",length=10,notnull=True,default=""),
migrate=True)
db.book.title.requires=IS_UPPER()
db.book.author.requires=[IS_UPPER(),
IS_NOT_IN_DB(db((db.book.title==request.vars.title)&
(db.book.volume==request.vars.volume)),'book.author')]
The condition "IS_NOT_IN_DB" don't works anymore.
Possible bug?
ionel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---