Attachment 'moin1-5-4-1user.diff'

Download

   1 --- user_orig.py	2006-07-01 20:56:00.000000000 +0200
   2 +++ user.py	2006-11-25 16:38:42.000000000 +0100
   3 @@ -936,7 +936,7 @@
   4              markup = '%s:%s' % (wikiname, pagename.replace(" ","_")) 
   5          return markup
   6  
   7 -    def mailAccountData(self, cleartext_passwd=None):
   8 +    def mailAccountData(self, cleartext_passwd=None, invitation=False):
   9          from MoinMoin.util import mail
  10          from MoinMoin.wikiutil import getSysPage
  11          _ = self._request.getText
  12 @@ -955,7 +955,9 @@
  13              self.enc_password = pwd
  14              self.save()
  15  
  16 -        text = '\n' + _("""\
  17 +        if not invitation:
  18 +
  19 +            text = '\n' + _("""\
  20  Login Name: %s
  21  
  22  Login Password: %s
  23 @@ -964,7 +966,7 @@
  24  """, formatted=False) % (
  25                          self.name, self.enc_password, self._request.getBaseURL(), getSysPage(self._request, 'UserPreferences').page_name)
  26  
  27 -        text = _("""\
  28 +            text = _("""\
  29  Somebody has requested to submit your account data to this email address.
  30  
  31  If you lost your password, please use the data below and just enter the
  32 @@ -974,6 +976,32 @@
  33  After successfully logging in, it is of course a good idea to set a new and known password.
  34  """, formatted=False) + text
  35  
  36 +        else:
  37 +
  38 +            text = '\n' + _("""\
  39 +Login Name: %s
  40 +
  41 +Login Password: %s
  42 +
  43 +Login URL: %s/%s?action=login
  44 +""", formatted=False) % (
  45 +                        self.name, cleartext_passwd, self._request.getBaseURL(), getSysPage(self._request, 'UserPreferences').page_name)
  46 +
  47 +            text = _("""\
  48 +Welcome to the %(sitename)s Wiki!
  49 +
  50 +You are invited to join our wiki community and share your ideas with us.
  51 +Please use the login name and password below to log in. To ease login, you can
  52 +also use copy and paste.
  53 +Please do also make sure that in your browser's settings cookies are enabled
  54 +for the login url so that authentications does really work and is kept while
  55 +navigating in the wiki.
  56 +
  57 +After successfully logging in, it is of course a good idea to set a new password
  58 +of your choice.
  59 +""", formatted=False) % {'sitename': self._cfg.sitename or "Wiki"}  + text
  60 +
  61 +        
  62  
  63          subject = _('[%(sitename)s] Your wiki account data',
  64                      formatted=False) % {'sitename': self._cfg.sitename or "Wiki"}

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.