Hi, I'm trying to delete a single dynamic property from an Expando entity, as per http://code.google.com/appengine/docs/datastore/expandoclass.html The given way to do this is simply:
del myobj.myprop So what I'm looking to do is something like this: for dynamic_prop in myobj.dynamic_properties(): # if statement here... del myobj.dynamic_prop But in this case, dynamic_prop is a string, so myobj.dynamic_prop throws this error: AttributeError: 'super' object has no attribute 'dynamic_prop' For storing attributes, I was able to use: setattr(myobj, property_name, property_value) # property_name and property_value are strings So the only thing I can think of to do what I want this time would be: prop = getattr(myobj, dynamic_prop) del prop But this only deletes the new string created with getattr(), and then del getattr(myobj, dynamic_prop) Throws the error: SyntaxError: can't delete function call If anyone can point out the correct way to do this, I would really appreciate it. Thanks, Nevin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
