Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 def admin_delete(self, key):
     namespace_manager.set_namespace("shared.theme")
     return scaffold.delete(self, key)
Example #4
0
 def admin_delete(self, key):
     namespace_manager.set_namespace("shared.information")
     return scaffold.delete(self, key)