git://git.onelab.eu
/
unfold.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4abf1ba
)
Clear cache of Admin when validating the creation of an Authority or a Project
author
Loic Baron
<loic.baron@lip6.fr>
Mon, 27 Apr 2015 13:31:58 +0000
(15:31 +0200)
committer
Loic Baron
<loic.baron@lip6.fr>
Mon, 27 Apr 2015 13:31:58 +0000
(15:31 +0200)
portal/actions.py
patch
|
blob
|
history
diff --git
a/portal/actions.py
b/portal/actions.py
index
a96dfd6
..
46c6919
100644
(file)
--- a/
portal/actions.py
+++ b/
portal/actions.py
@@
-686,6
+686,10
@@
def portal_validate_request(wsgi_request, request_ids):
user_email = a.email
PendingAuthority.objects.get(id=request['id']).delete()
user_email = a.email
PendingAuthority.objects.get(id=request['id']).delete()
+
+ # Clear Admin Cache as it is used to display the list of authorities in Registration page
+ query = Query.update('myslice:authority').filter_by('authority_hrn', '==', sfa_authority_params['authority_hrn']).set({'authority_hrn':sfa_authority_params['authority_hrn']}).select('authority_hrn')
+ res = execute_admin_query(request, query)
elif request['type'] == 'project':
hrn = request['authority_hrn'] + '.' + request['project_name']
elif request['type'] == 'project':
hrn = request['authority_hrn'] + '.' + request['project_name']
@@
-712,6
+716,11
@@
def portal_validate_request(wsgi_request, request_ids):
PendingProject.objects.get(id=request['id']).delete()
PendingProject.objects.get(id=request['id']).delete()
+ # Clear Admin Cache as it is used to display the list of projects in Slice request page
+ query = Query.update('myslice:authority').filter_by('authority_hrn', '==', sfa_authority_params['authority_hrn']).set({'authority_hrn':sfa_authority_params['authority_hrn']}).select('authority_hrn')
+ res = execute_admin_query(request, query)
+
+
elif request['type'] == 'join':
# Add user as a PI of the project
# Clear user's Credentials
elif request['type'] == 'join':
# Add user as a PI of the project
# Clear user's Credentials