[google-appengine] Re: how to get ManyToMany fields

2008-11-04 Thread Alexander Kojevnikov
db.ListProperty(db.Key) does not automatically de-reference entities, you will need to do it yourself before passing them to the template. On Nov 4, 7:13 pm, mawei1981 <[EMAIL PROTECTED]> wrote: > I hava ManyToMany field in a entity > > class Memory(db.Model): >         author = db.UserProperty()

[google-appengine] Re: how to get ManyToMany fields

2008-11-04 Thread mawei1981
the friends is a sub-list of memory entity. Why not load the list on lazy mode. Faint, I will manual get the lists . But how can I put the sub-list to the object. does google provide sample code on this. On Nov 4, 4:30 pm, Alexander Kojevnikov <[EMAIL PROTECTED]> wrote: > db.ListProperty(db.Key

[google-appengine] Re: how to get ManyToMany fields

2008-11-04 Thread Alexander Kojevnikov
> the friends is a sub-list of memory entity. > Why not load the list on lazy mode. > > Faint, I will manual get the lists . > But how can I put the sub-list to the object. > > does google provide sample code on this. It's Python, you can create a member variable dynamically any time by assigning

[google-appengine] Re: how to get ManyToMany fields

2008-11-04 Thread mawei1981
ok. thanks to Alexander. On Nov 5, 7:08 am, Alexander Kojevnikov <[EMAIL PROTECTED]> wrote: > > the friends is a sub-list of memory entity. > > Why not load the list on lazy mode. > > > Faint, I will manual get the lists . > > But how can I put the sub-list to the object. > > > does google provid