Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue May 28, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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 [email protected] on 15 Jan 2010 at 8:44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant