You are right. In the example it is the framework that knows about
relations, not the db. This will change when/if we will also
referencing fields other than id.

Massimo

On Dec 23, 7:42 am, Fran <[email protected]> wrote:
> On Dec 23, 9:45 am, mdipierro <[email protected]> wrote:
>
> > This can be achieved without modifying web2py. Here is what to do:
>
> *Many* thanks for such a clear HOWTO :)
>
> >     db.Field('owner',length=64),
> > db.dog.owner.requires=IS_IN_DB(db,'person.uuid','%(name)s')
>
> Does replacing the Field definition's db.person with a simple
> 'length=64' not affect CASCADE DELETE functionality?
> This basically pushes the onus of referential integraity onto us from
> the framework, right?
>
> 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