Re: [google-appengine] Neat way to remove obsolete properties from entities?

2011-04-05 Thread Robert Kluin
Hey Greg, Assuming you are deleting the property definition from the Model, then I think you can also use: your_entity._entity.pop('property_to_delete', None) It is shorter, and probably a little clearer. Robert On Tue, Apr 5, 2011 at 00:17, Greg g.fawc...@gmail.com wrote:

[google-appengine] Neat way to remove obsolete properties from entities?

2011-04-04 Thread Greg
I've stumbled across what looks like a neat way to remove obsolete properties from entities, without having to switch models to Expando and back again. I convert the entity to a protocol buffer, which reveals the obsolete properties. Then I remove them, convert back to an entity and save it. So