Hi Nick, thanks for your reply! yes indeed a numeric id would be more
readable so, just to be clear and for future reference, your
suggestion is to use entity.key().id() to construct the url and
Model.get_by_id() to retireve the entity right?
On Jul 3, 6:25 am, "Nick Johnson (Google)" <
nick.john...@google.com>
wrote:
> Hi Samus,
> >
http://code.google.com/appengine/docs/python/datastore/creatinggettin...
> > but of course if the encoding method is not guaranteed to remain the
> > same then this is a bad idea (cool URIs don't change right?) good to
> > know thanks.
>
> Usingkeysin URLs is more or less an officially 'blessed' approach.
> For that reason, I'd revise my earlier statement and say that while
> it's not totally impossible for the key encoding format to change in
> future, it's extremely unlikely.
>
> That said, you can provide much more user-friendly URLs if you use
> just the fields you need from the key -
www.mysite.com/123is much
> more user friendly
thanwww.mysite.com/somelongbase64string.
>
> -Nick Johnson
>
>
>
>
>
> > On Jun 17, 7:43 am, "Nick Johnson (Google)" <
nick.john...@google.com>
> > wrote:
> >> I would not rely on the encodingstr(key) remaining the same, no. The only