[google-appengine] Re: Prettier values for reference keys?

2009-10-15 Thread Tonny
Thanks :-) I'll try that Cheers Tonny On 12 Okt., 13:21, Rodrigo Moraes rodrigo.mor...@gmail.com wrote: On Mon, Oct 12, 2009 at 4:45 AM, Tonny wrote: in. I could write my own ReferenceProperty from scratch, subclassing Property, but I would also like a simple solution where I didn't

[google-appengine] Re: Prettier values for reference keys?

2009-10-15 Thread Chris Tan
I wrote a KeyNameReferenceProperty awhile back, maybe this will help: http://gist.github.com/109193 On Oct 12, 12:45 am, Tonny mezz...@gmail.com wrote: Hi Can someone help with this consideration: When we're creating a ReferenceProperty on datastore objects the value stored in the model

[google-appengine] Re: Prettier values for reference keys?

2009-10-15 Thread Tonny
Thanks. My own experiment looked similar (your solution i more general an prettier), but doesn't this approach trigger an extra data fetch for the referred entity each time we fetch instantiate the referrer? Cheers Tonny On 15 Okt., 08:59, Chris Tan csy...@gmail.com wrote: I wrote a

[google-appengine] Re: Prettier values for reference keys?

2009-10-12 Thread Rodrigo Moraes
On Mon, Oct 12, 2009 at 4:45 AM, Tonny wrote: in. I could write my own ReferenceProperty from scratch, subclassing Property, but I would also like a simple solution where I didn't reinvent all ready existing functionality. use a StringProperty, and add some utility functions to set it from a

[google-appengine] Re: Prettier values for reference keys?

2009-10-12 Thread Rodrigo Moraes
On Mon, Oct 12, 2009 at 4:45 AM, Tonny wrote: in. I could write my own ReferenceProperty from scratch, subclassing Property, but I would also like a simple solution where I didn't reinvent all ready existing functionality. ignore my previous post. here's a solution that does exactly what your