quankim277 / geomodel

Automatically exported from code.google.com/p/geomodel
0 stars 0 forks source link

Support for automatically updating geocells on Model.put() #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be relatively simple to override the inherited put() method to
call update_location() and thus automatically update the geocell data every
time an entity is updated.

I realize this may not be ideal for all (or even many) uses of the
geomodel, but it could be turned off by default, and activated by setting a
class attribute to true, as in the attached diff.

Original issue reported on code.google.com by evan.kaufman on 8 Jan 2010 at 5:29

Attachments:

GoogleCodeExporter commented 8 years ago
I've been thinking of doing this a different way, using Nick Johnson's 
DerivedProperty 
approach:

http://blog.notdot.net/2009/9/Custom-Datastore-Properties-1-DerivedProperty

Original comment by api.roman.public@gmail.com on 15 Jan 2010 at 8:44