Right - I wrote db.Key().name() for input to construct a key_name when
I should have written str of db.Key instance.

In short, I have three root db.Model instances that were constructed
without a key_name,  I want to construct a key_name for another root
instance by concatenating str of those instance's key() s.

I'm doing this because if str(x.key()) is unique, concatenating them
will also be unique.

On Oct 16, 9:10 am, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> If key_name isn't set, db.Key().name() will return None.
>
> -Marzia
>
>
>
> On Thu, Oct 16, 2008 at 9:07 AM, Andy Freeman <[EMAIL PROTECTED]> wrote:
>
> > If the lenghth of an instance's db.Key().name() when key_name isn't
> > set is a constant, that's even better for my purposes.
>
> > On Oct 16, 2:13 am, Ross Ridge <[EMAIL PROTECTED]> wrote:
> > > Andy Freeman wrote:
> > > > I'd assumed that the length of a db.Model instance's db.Key().name()
> > > > was a constant plus a linear function of the depth the entity in its
> > > > entity group.
>
> > > The length of the instance's db.Key().name() is the same as the
> > > key_name you set when you created it.  If you didn't set a key_name
> > > then the entity has an id whose length I don't think is dependent on
> > > its depth in its entity group.  The id (and key_name) is only unique
> > > amongst the enities with both the same kind and parent, so there's no
> > > need for it to be any longer because it's depth.
>
> > >                                         Ross Ridge- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to