Attachment 'userform.diff'
Download 1 --- userform_old.py 2006-12-09 13:32:00.000000000 +0100
2 +++ userform.py 2006-12-10 22:32:04.000000000 +0100
3 @@ -142,11 +142,14 @@
4 return _("This email already belongs to somebody else.")
5
6 # save data
7 - theuser.save()
8 if form.has_key('create_and_mail'):
9 - theuser.mailAccountData()
10 -
11 - result = _("User account created! You can use this account to login now...")
12 + # ToDo: Add translation for _("User account created.")
13 + result1 = _("User account created.")
14 + result2 = theuser.mailAccountData(form.get('password', [''])[0], True)
15 + # This assumes that all msg from mailAccountData (result2) have translations
16 + result = "%s %s" % (result1, _(result2))
17 + else:
18 + result = _("User account created! You can use this account to login now...")
19 if _debug:
20 result = result + util.dumpFormData(form)
21 return result
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.