ninenizil / android2cloud

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

Users should be able to delete themselves from server #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The server should have an option to delete a user's data from it entirely, so 
as to effectively eliminate them from the system. No identifying data (e.g., 
everything but the Analytics data) should remain after this option is invoked.

Original issue reported on code.google.com by foran.pa...@gmail.com on 5 Aug 2010 at 12:56

GoogleCodeExporter commented 8 years ago
I'm a C# developer, so I've been monkeying with java, but not with Python.
Looks like you need to add in the app definition

 ('/links/erase', EraseLinksHandler),

Then something like:
class EraseLinksHandler(webapp.RequestHandler):
    '''This class is built to erase all activity of an authenticated users. It takes no arguments, and returns nothing.'''
    def get(self):
        if users.get_current_user():
            links = Link.all().filter("author =", users.get_current_user())
            for link in links:
               link.delete()
        else:
            self.redirect(users.create_login_url("/links/erase"))

Original comment by jazmatic...@gmail.com on 30 Aug 2010 at 5:18

Attachments:

GoogleCodeExporter commented 8 years ago
Yeah, it's a pretty simple fix. I just haven't gotten around to it. I also need 
to think of an elegant way to include it in the Android and Chrome Extension 
UIs, too.

Thanks for the code, though. :)

Original comment by foran.pa...@gmail.com on 30 Aug 2010 at 9:12

GoogleCodeExporter commented 8 years ago
Just cleaning up issues and labels.

Original comment by foran.pa...@gmail.com on 7 Sep 2010 at 6:55

GoogleCodeExporter commented 8 years ago
This issue has been moved to Github: 
https://github.com/2cloud/AppEngine/issues/31

Original comment by foran.pa...@gmail.com on 6 Aug 2011 at 9:53