git://git.onelab.eu
/
myslice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0b31b5d
)
Actions.py: update_user now done with admin_query [not working. why?]
author
Yasin
<mohammed-yasin.rahman@lip6.fr>
Thu, 9 Jan 2014 17:03:42 +0000
(18:03 +0100)
committer
Yasin
<mohammed-yasin.rahman@lip6.fr>
Thu, 9 Jan 2014 17:03:42 +0000
(18:03 +0100)
portal/actions.py
patch
|
blob
|
history
diff --git
a/portal/actions.py
b/portal/actions.py
index
97b8ac8
..
dbdfdfa
100644
(file)
--- a/
portal/actions.py
+++ b/
portal/actions.py
@@
-60,10
+60,10
@@
def manifold_add_user(request, user_params):
result, = results
return result['email']
result, = results
return result['email']
-def manifold_update_user(request, user_params):
+def manifold_update_user(request,
email,
user_params):
# user_params: password, config e.g.,
# user_params: password, config e.g.,
- query = Query.update('local:user').filter_by('email', '==',
request.user.
email).set(user_params).select('email')
- results = execute_query(request,query)
+ query = Query.update('local:user').filter_by('email', '==', email).set(user_params).select('email')
+ results = execute_
admin_
query(request,query)
# NOTE: results remains empty and goes to Exception. However, it updates the manifold DB.
# That's why I commented the exception part. -- Yasin
#if not results:
# NOTE: results remains empty and goes to Exception. However, it updates the manifold DB.
# That's why I commented the exception part. -- Yasin
#if not results: