is parent a GAE thing?

if not, then wouldn't parent be setup as a reference to book (in this
example), and
db.review.insert(parent = book.id, text = 'The book was great) would
work?

cfh

On Apr 18, 9:15 pm, Matt <mjwat...@gmail.com> wrote:
> Thanks Massimo.
>
> Matt
>
> On Apr 19, 1:53 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > No but there should. Will look into this. If anybody has come concrete
> > proposals, let me know.
>
> > Massimo
>
> > On Apr 18, 7:30 pm, Matt <mjwat...@gmail.com> wrote:
>
> > > Hi,
>
> > > Quick question when using web2py with GAE.
>
> > > I need to assign a model as the parent of another entity.
>
> > > How can I retrieve the GAE "model instance" from a web2py query...?
>
> > >       book = db.book[request.args(0)]
>
> > >       [The book is returned as a row]
>
> > >       I'd like to do the following:
>
> > >       db.review.insert(parent = book, text = 'The book was great)
>
> > >       Is there an easy way to do this?
>
> > > Thanks in advance,
> > > Matt
>
> > > --
> > > Subscription 
> > > settings:http://groups.google.com/group/web2py/subscribe?hl=en

Reply via email to