You have a point. I will try to add those next week.
On Jul 22, 7:34 pm, Jonathan Lundell <jlund...@pobox.com> wrote:
> On Jul 22, 2009, at 5:03 PM, Yarko Tymciurak wrote:
>
> > On Wed, Jul 22, 2009 at 6:59 PM, Jonathan Lundell
> > <jlund...@pobox.com> wrote:
> > On Jul 21, 2009, at 9:14 PM, Yarko Tymciurak wrote:
>
> >> There is a section in the new book draft which covers Self-
> >> Reference and Aliases (self-reference notation was added, I
> >> believe, after the first version went to print).
>
> > Yes, I've read it. What I'm saying is that it ought to be extended
> > to include a two-table cross-reference example.
>
> > You think that's necessary? would be additionally helpful??
>
> I think so, yes. Not necessarily an entire example, perhaps, but at
> least an explicit mention of that use.
>
> The other shortcoming, as I recall, is that the deferred 'reference'
> isn't fully defined. When is it evaluated, as opposed to a direct
> table reference, for example?
>
>
>
> >> On Tue, Jul 21, 2009 at 10:53 PM, Jonathan Lundell <jlund...@pobox.com
> >> > wrote:
>
> >> On Jul 21, 2009, at 8:49 PM, Yarko Tymciurak wrote:
>
> >> > There are two formats for declaring a reference:
>
> >> > ....
> >> > db.Field('owner', db.other_table) # this must have other_table
> >> > already defined, or it is a Python error;
> >> > ...
> >> > db.Field('owner', 'reference other_table') # this is delayed
> >> > evaluation, and what you would use to have two tables cross link
> >> > each other;
>
> >> This could use a little more detail in the manual, which talks about
> >> it in terms of self-reference, but doesn't really explain the
> >> mechanism, or mention the cross-reference usage. IIRC.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---