On Dec 31, 12:45 am, mdipierro <[email protected]> wrote:
> 1) try svn 602 or launchpad 330. They should work with uuid.

I still get this error:
value not in database!

The names show up fine but when I submit this error shows up.
I have:
db.define_table('owner',SQLField('name'),SQLField
('uuid',length=64,default=uuid.uuid4()))
db.define_table('dog',SQLField('name'),SQLField('owner','text'))
db.dog.owner.requires=IS_IN_DB
(db,'owner.uuid','owner.name',multiple=True)

> 2) IS_NULL_OR(IS_IN_DB(...multiple=True))
> is not supposed to work because if multiple=True IS_IN_DB does not
> poses constraints on how many you select. You may select 0. Hence it
> would be equivalent to IS_IN_DB(...multiple=True)

I'm not trying to add Multiple= to the IS_NULL_OR().
I'm finding that this new functionality has broken other tables which
use plain IS_NULL_OR() without having anything specified for
Multiple=.
Hence this breaks backward compatibility.

F
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to