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
> >
>

--~--~---------~--~----~------------~-------~--~----~
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