[services] register_user now returns the new CWUser
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 23 Apr 2014 18:19:37 +0200
changeset 9722 c0ae36be84ee
parent 9721 2f08bd4c813b
child 9723 46ad7d474d3d
[services] register_user now returns the new CWUser Closes #3804444
sobjects/services.py
--- a/sobjects/services.py	Wed Apr 23 18:41:34 2014 +0200
+++ b/sobjects/services.py	Wed Apr 23 18:19:37 2014 +0200
@@ -154,3 +154,5 @@
             cnx.execute('INSERT EmailAddress X: X address %(email)s, '
                         'U primary_email X, U use_email X '
                         'WHERE U login %(login)s', d, build_descr=False)
+
+        return user