rabin 6 years ago
parent
commit
6e732f43d1
3 changed files with 4 additions and 4 deletions
  1. 1 1
      demeter/admin/page/admin.py
  2. 1 1
      demeter/web.py
  3. 2 2
      demos/helloworld/admin/page/site.py

+ 1 - 1
demeter/admin/page/admin.py

@@ -84,7 +84,7 @@ class role_update_path(Load):
 	@Web.auth
 	@Web.setting
 	def delete(self):
-		self.delete('manage_role')
+		self.drop('manage_role')
 
 class log_path(Load):
 	@Web.auth

+ 1 - 1
demeter/web.py

@@ -128,7 +128,7 @@ class Base(tornado.web.RequestHandler):
 			self.out('yes', {'id':state})
 			return state
 
-	def delete(self, model):
+	def drop(self, model):
 		if not self.data['auth']:
 			self.auth()
 		else:

+ 2 - 2
demos/helloworld/admin/page/site.py

@@ -52,7 +52,7 @@ class site_update_path(Load):
 	@Web.auth
 	@Web.setting
 	def delete(self):
-		self.delete('site')
+		self.drop('site')
 
 class product_path(Load):
 	@Web.auth
@@ -106,7 +106,7 @@ class product_update_path(Load):
 	@Web.auth
 	@Web.setting
 	def delete(self):
-		self.delete('product')
+		self.drop('product')
 
 class order_path(Load):
 	@Web.auth