Browse Source

remove delete_user feature + allow substring search

Damien Accorsi 11 years ago
parent
commit
3e3f6d49dc

+ 1 - 0
pboard/pboard/controllers/admingroup.py View File

19
 
19
 
20
 class AdminGroupController(CrudRestController):
20
 class AdminGroupController(CrudRestController):
21
     model = pma.Group
21
     model = pma.Group
22
+    substring_filters = True
22
 
23
 
23
     class new_form_type(AddRecordForm):
24
     class new_form_type(AddRecordForm):
24
         __model__ = pma.Group
25
         __model__ = pma.Group

+ 6 - 0
pboard/pboard/controllers/adminuser.py View File

39
 
39
 
40
 class AdminUserController(CrudRestController):
40
 class AdminUserController(CrudRestController):
41
     model = pma.User
41
     model = pma.User
42
+    substring_filters = True
42
 
43
 
43
     class new_form_type(AddRecordForm):
44
     class new_form_type(AddRecordForm):
44
         __model__ = pma.User
45
         __model__ = pma.User
101
         return tg.redirect('./', params=self._kept_params())
102
         return tg.redirect('./', params=self._kept_params())
102
 
103
 
103
 
104
 
105
+    """
104
     @tg.expose()
106
     @tg.expose()
105
     def post_delete(self, *args, **kw):
107
     def post_delete(self, *args, **kw):
106
         user_id = int(args[0])
108
         user_id = int(args[0])
107
 
109
 
108
         pld.PODStaticController.deleteUser(user_id)
110
         pld.PODStaticController.deleteUser(user_id)
109
         return tg.redirect('./', params=self._kept_params())
111
         return tg.redirect('./', params=self._kept_params())
112
+    """
113
+
114
+    def post_delete(self, *args, **kw):
115
+        pass
110
 
116
 
111
     @tg.expose()
117
     @tg.expose()
112
     def put(self, *args, **kw):
118
     def put(self, *args, **kw):