def admin_delete(self, key): try: item = self.util.decode_key(key).get() file_key = item.file blobstore.delete(file_key) except: pass return scaffold.delete(self, key)
def admin_delete(self, key): target = self.util.decode_key(key).get() target_level = target.level if self.administrator_level< target_level: return self.abort(403) return scaffold.delete(self, key)
def admin_delete(self, key): namespace_manager.set_namespace("shared.theme") return scaffold.delete(self, key)
def admin_delete(self, key): namespace_manager.set_namespace("shared.information") return scaffold.delete(self, key)