def run(self, dictionary, method): from google.appengine.api import users user = users.get_current_user() if user and users.is_current_user_admin(): api.delegate(self, dictionary, method, api.Permissions.Admin) return self.response.headers['Content-Type'] = "application/javascript" self.response.out.write(api.response.throw(002, compiled=True))
def post(self, dictionary, method): api.delegate(self, dictionary, method, api.Permissions.Guest)
def post(self, dictionary, method): api.delegate(self, dictionary, method, api.Permissions.Admin)
def get(self, dictionary, method): api.delegate(self, dictionary, method, api.Permissions.Admin)
def run(self, dictionary, method): from lib.api import delegate, Permissions delegate(self, dictionary, method, Permissions.Guest)
def get(self, dictionary, method): api.delegate(self, dictionary, method, api.Permissions.Guest)