git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated portal
[unfold.git]
/
portal
/
views.py
diff --git
a/portal/views.py
b/portal/views.py
index
ba7f30f
..
869bd2d
100644
(file)
--- a/
portal/views.py
+++ b/
portal/views.py
@@
-44,9
+44,10
@@
def index(request):
sons.append(Raw(page=p, title=STEP1_TITLE, togglable=False, html=STEP0))
start_step += 1
else:
sons.append(Raw(page=p, title=STEP1_TITLE, togglable=False, html=STEP0))
start_step += 1
else:
- # XXX This should become local:user
# We could pass a list of fields also, instead of retrieving them from metadata
# Otherwise we need some heuristics to display nice forms
# We could pass a list of fields also, instead of retrieving them from metadata
# Otherwise we need some heuristics to display nice forms
+ # XXX Could we log the user in after the form is validated ?
+ # XXX Explain the password is for XXX
field_list = [{
'name' : 'First name',
'field' : 'firstname',
field_list = [{
'name' : 'First name',
'field' : 'firstname',
@@
-77,7
+78,7
@@
def index(request):
'type' : 'password',
'description' : 'Enter your password again',
}]
'type' : 'password',
'description' : 'Enter your password again',
}]
- sons.append(CreateForm(page = p, title = STEP1_TITLE, togglable = False, fields = field_list))
+ sons.append(CreateForm(page = p, title = STEP1_TITLE, togglable = False,
object = 'local:user',
fields = field_list))
# STEP 2
# If the user already exists (is logged), let's display a summary of its institution
# STEP 2
# If the user already exists (is logged), let's display a summary of its institution