niklasr,

Thank you for sharing your approach. It is very illuminating.

 Andy,

I think I understand a little better and have revised our app but have
not deployed the change yet. The class Group has not been changed, and
we have not yet finalized a way to make the key_name unique by adding
a definition of "class Keysorsomething()" for that purpose and
enabling a dialog with the user if his/her choice has been taken. But,
I can show you the basic idea by in relation to the original group =
Group() and group.put() section.

Earlier in this thread I had suggested the following sequence of
commands and they were almost correct, but in the last line of the
sequence, instead of "key", we needed "g_place". With that change and
corresponding changes in two similar places in our maps.py, I think we
have what we want except that we need to add the features which direct
the user to select a unique key_name.

     def post(self):
        g_place = self.request.get('place')
        group  = Group(key_name=g_place)
        group.place = g_place
        key = group.put()
        self.redirect("/?place=%s" % key)

So, yes, I appreciate your further explanation of the differences
between key_name s and id s. I am not sure I have the full picture,
but I am past a major hurdle, for me.

Brian

--~--~---------~--~----~------------~-------~--~----~
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 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to