From: Yasin Date: Thu, 9 Jan 2014 17:03:42 +0000 (+0100) Subject: Actions.py: update_user now done with admin_query [not working. why?] X-Git-Tag: myslice-0.3-0~38^2~12 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=7f5dd5bfb00d94843494a072687f9134e9c410c7 Actions.py: update_user now done with admin_query [not working. why?] --- diff --git a/portal/actions.py b/portal/actions.py index 97b8ac81..dbdfdfa3 100644 --- a/portal/actions.py +++ b/portal/actions.py @@ -60,10 +60,10 @@ def manifold_add_user(request, user_params): 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., - 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: