Attachment 'MoinMoin.PageEditor.patch'

Download

   1 --- Moin/Moin19/MoinMoin/PageEditor.py	2009-12-04 21:01:10 +0000
   2 +++ PageEditor.py	2009-12-04 21:01:03 +0000
   3 @@ -765,16 +765,19 @@
   4          u = request.user
   5          obfuscated_email_address = encodeSpamSafeEmail(u.email)
   6          signature = u.signature()
   7 +        _ = self._
   8 +        N_ = lambda x:x
   9          variables = {
  10 -            'PAGE': self.page_name,
  11 -            'TIME': "<<DateTime(%s)>>" % now,
  12 -            'DATE': "<<Date(%s)>>" % now,
  13 -            'ME': u.name,
  14 -            'USERNAME': signature,
  15 -            'USER': "-- %s" % signature,
  16 -            'SIG': "-- %s <<DateTime(%s)>>" % (signature, now),
  17 -            'EMAIL': "<<MailTo(%s)>>" % (obfuscated_email_address)
  18 +            N_('PAGE'): self.page_name,
  19 +            N_('TIME'): "<<DateTime(%s)>>" % now,
  20 +            N_('DATE'): "<<Date(%s)>>" % now,
  21 +            N_('ME'): u.name,
  22 +            N_('USERNAME'): signature,
  23 +            N_('USER'): "-- %s" % signature,
  24 +            N_('SIG'): "-- %s <<DateTime(%s)>>" % (signature, now),
  25 +            N_('EMAIL'): "<<MailTo(%s)>>" % (obfuscated_email_address)
  26          }
  27 +        variables.update(dict(zip([_(name) for name in variables], variables.values())))
  28  
  29          if u.valid and u.name:
  30              if u.email:

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] (2009-12-04 21:07:06, 1.2 KB) [[attachment:MoinMoin.PageEditor.patch]]
 All files | Selected Files: delete move to page copy to page

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