blob: a6bbfbe597174903481f506a8f6ce725f90ed93c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import webapp2
from google.appengine.api import users
from google.appengine.ext import db
class RemoveEvent(webapp2.RequestHandler):
def get(self):
return
def post(self):
guserid = users.get_current_user()
if not guserid:
return
thiskey = db.Key(self.request.get('key'))
thisobj = db.get(thiskey)
thisobj.delete()
app = webapp2.WSGIApplication([('/access/remove', RemoveEvent)])
|