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.
  • [get | view] (2006-11-25 20:10:35, 1.4 KB) [[attachment:MakeInvitation.py]]
  • [get | view] (2006-12-10 22:20:31, 1.1 KB) [[attachment:MakeInvitation.txt]]
  • [get | view] (2006-12-10 22:20:06, 2.8 KB) [[attachment:MakeInvitation1-6-dev.py]]
  • [get | view] (2008-11-20 08:40:46, 9.3 KB) [[attachment:MakeInvitation_v1.7.2.gif]]
  • [get | view] (2008-11-20 07:33:50, 3.0 KB) [[attachment:MakeInvitation_v1.7.2.py]]
  • [get | view] (2008-11-20 07:34:07, 1.2 KB) [[attachment:MakeInvitation_v1.7.2.txt]]
  • [get | view] (2006-12-10 22:19:33, 2.5 KB) [[attachment:mailAccountData.py]]
  • [get | view] (2006-11-25 20:10:53, 2.3 KB) [[attachment:moin1-5-4-1user.diff]]
  • [get | view] (2006-11-25 20:13:16, 4.1 KB) [[attachment:moin1-5-4-1userform.diff]]
  • [get | view] (2006-12-10 22:19:03, 2.2 KB) [[attachment:user-1-6-dev.diff]]
  • [get | view] (2006-11-25 20:12:10, 33.3 KB) [[attachment:user_moin1-5-4-1_patched.py]]
  • [get | view] (2006-12-10 22:18:31, 1.0 KB) [[attachment:userform.diff]]
  • [get | view] (2006-11-25 20:12:52, 31.5 KB) [[attachment:userform_moin1-5-4-1_patched.py]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.