|
@@ -18,8 +18,8 @@ import warnings
|
18
|
18
|
def index_admin(request):
|
19
|
19
|
# We have to be identified to admin the instance
|
20
|
20
|
# temporary, the acl will be more restrictive
|
21
|
|
- if WebUiClient.is_anonymous():
|
22
|
|
- return get_response('users/signin.html')
|
|
21
|
+ #if WebUiClient.is_anonymous():
|
|
22
|
+ # return get_response('users/signin.html')
|
23
|
23
|
return get_response('admin/admin.html')
|
24
|
24
|
|
25
|
25
|
##@brief Controller's function to update an object of the editorial model
|
|
@@ -28,8 +28,8 @@ def index_admin(request):
|
28
|
28
|
def admin_update(request):
|
29
|
29
|
# We have to be identified to admin the instance
|
30
|
30
|
# temporary, the acl will be more restrictive
|
31
|
|
- if WebUiClient.is_anonymous():
|
32
|
|
- return get_response('users/signin.html')
|
|
31
|
+ #if WebUiClient.is_anonymous():
|
|
32
|
+ # return get_response('users/signin.html')
|
33
|
33
|
msg=''
|
34
|
34
|
|
35
|
35
|
# If the form has been submitted
|
|
@@ -123,8 +123,8 @@ def admin_update(request):
|
123
|
123
|
def admin_create(request):
|
124
|
124
|
# We have to be identified to admin the instance
|
125
|
125
|
# temporary, the acl will be more restrictive
|
126
|
|
- if WebUiClient.is_anonymous():
|
127
|
|
- return get_response('users/signin.html')
|
|
126
|
+ #if WebUiClient.is_anonymous():
|
|
127
|
+ # return get_response('users/signin.html')
|
128
|
128
|
classname = None
|
129
|
129
|
# If the form has been submitted
|
130
|
130
|
if request.method == 'POST':
|
|
@@ -179,8 +179,8 @@ def admin_create(request):
|
179
|
179
|
def admin_delete(request):
|
180
|
180
|
# We have to be identified to admin the instance
|
181
|
181
|
# temporary, the acl will be more restrictive
|
182
|
|
- if WebUiClient.is_anonymous():
|
183
|
|
- return get_response('users/signin.html')
|
|
182
|
+ #if WebUiClient.is_anonymous():
|
|
183
|
+ # return get_response('users/signin.html')
|
184
|
184
|
classname = None
|
185
|
185
|
|
186
|
186
|
if 'classname' in request.GET:
|
|
@@ -229,29 +229,29 @@ def admin_delete(request):
|
229
|
229
|
def admin_classes(request):
|
230
|
230
|
# We have to be identified to admin the instance
|
231
|
231
|
# temporary, the acl will be more restrictive
|
232
|
|
- if WebUiClient.is_anonymous():
|
233
|
|
- return get_response('users/signin.html')
|
|
232
|
+ #if WebUiClient.is_anonymous():
|
|
233
|
+ # return get_response('users/signin.html')
|
234
|
234
|
return get_response('admin/list_classes_admin.html', my_classes = dyncode.dynclasses)
|
235
|
235
|
|
236
|
236
|
def create_object(request):
|
237
|
237
|
# We have to be identified to admin the instance
|
238
|
238
|
# temporary, the acl will be more restrictive
|
239
|
|
- if WebUiClient.is_anonymous():
|
240
|
|
- return get_response('users/signin.html')
|
|
239
|
+ #if WebUiClient.is_anonymous():
|
|
240
|
+ # return get_response('users/signin.html')
|
241
|
241
|
return get_response('admin/list_classes_create.html', my_classes = dyncode.dynclasses)
|
242
|
242
|
|
243
|
243
|
def delete_object(request):
|
244
|
244
|
# We have to be identified to admin the instance
|
245
|
245
|
# temporary, the acl will be more restrictive
|
246
|
|
- if WebUiClient.is_anonymous():
|
247
|
|
- return get_response('users/signin.html')
|
|
246
|
+ #if WebUiClient.is_anonymous():
|
|
247
|
+ # return get_response('users/signin.html')
|
248
|
248
|
return get_response('admin/list_classes_delete.html', my_classes = dyncode.dynclasses)
|
249
|
249
|
|
250
|
250
|
def admin_class(request):
|
251
|
251
|
# We have to be identified to admin the instance
|
252
|
252
|
# temporary, the acl will be more restrictive
|
253
|
|
- if WebUiClient.is_anonymous():
|
254
|
|
- return get_response('users/signin.html')
|
|
253
|
+ #if WebUiClient.is_anonymous():
|
|
254
|
+ # return get_response('users/signin.html')
|
255
|
255
|
# We need the class we'll list to select the object to edit
|
256
|
256
|
if 'classname' in request.GET:
|
257
|
257
|
classname = request.GET['classname']
|
|
@@ -269,8 +269,8 @@ def admin_class(request):
|
269
|
269
|
def delete_in_class(request):
|
270
|
270
|
# We have to be identified to admin the instance
|
271
|
271
|
# temporary, the acl will be more restrictive
|
272
|
|
- if WebUiClient.is_anonymous():
|
273
|
|
- return get_response('users/signin.html')
|
|
272
|
+ #if WebUiClient.is_anonymous():
|
|
273
|
+ # return get_response('users/signin.html')
|
274
|
274
|
# We need the class we'll list to select the object to delete
|
275
|
275
|
if 'classname' in request.GET:
|
276
|
276
|
classname = request.GET['classname']
|
|
@@ -288,8 +288,8 @@ def delete_in_class(request):
|
288
|
288
|
def admin(request):
|
289
|
289
|
# We have to be identified to admin the instance
|
290
|
290
|
# temporary, the acl will be more restrictive
|
291
|
|
- if WebUiClient.is_anonymous():
|
292
|
|
- return get_response('users/signin.html')
|
|
291
|
+ #if WebUiClient.is_anonymous():
|
|
292
|
+ # return get_response('users/signin.html')
|
293
|
293
|
return get_response('admin/admin.html')
|
294
|
294
|
|
295
|
295
|
|