1) try svn 602 or launchpad 330. They should work with uuid. 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)
On Dec 30, 6:37 pm, Fran <[email protected]> wrote: > On Dec 30, 11:37 pm, mdipierro <[email protected]> wrote: > > > New in trunk. Please give this a try: > > Looking promising :) > > However fails if I try to use uuid instead of id: > db.define_table('owner',SQLField('uuid',length=64,default=uuid.uuid4 > ()),SQLField('name')) > db.define_table('dog',SQLField('name'),SQLField('owner','text')) > db.dog.owner.requires=IS_IN_DB > (db,'owner.uuid','owner.name',multiple=True) > > Also, currently it does break other stuff as the new 'multiple' field > isn't optional - I get this in my other controllers: > if not field.requires.multiple: > AttributeError: 'IS_NULL_OR' object has no attribute 'multiple' > > > If you like it and if nothing breaks, this will go in 1.55. > > Shaping up to be a big release :) > > 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 -~----------~----~----~----~------~----~------~--~---

