Alexander, That's perfect. Thanx much. I am just learning object oriented programming. No, it's more like I am just experiencing oo via great help, like yours.
On Feb 14, 10:27 pm, Alexander Kojevnikov <alexan...@kojevnikov.com> wrote: > On Feb 15, 12:40 pm, thebrianschott <schott.br...@gmail.com> wrote:> The only > link I can find regarding getattr > ishttp://code.google.com/appengine/articles/rpc.html > > . I am unfamiliar with this approach. Would someone show me how to > > loop through my example using getattr/setattr please? > > I didn't test the code, let me know if it doesn't work: > > def copy_properties(src, dst): > for name in src.properties(): > value = getattr(src, name) > setattr(dst, name, value) > > place = Group(key_name="joan") > place.zoom =3 > place.place="joan" > place.put() > > nextplace = Group(key_name="joan2") > copy_properties(place, nextplace) > nextplace.put() --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---