changeset 484:a83f4ebb4955

login page: add a hint with a link to UserPreferences page imported from: moin--main--1.5--patch-488
author Thomas Waldmann <tw@waldmann-edv.de>
date Mon, 20 Mar 2006 19:15:44 +0000
parents a594780d5e64
children f9212c2d77a4
files ChangeLog MoinMoin/userform.py
diffstat 2 files changed, 22 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Mar 19 01:21:38 2006 +0000
+++ b/ChangeLog	Mon Mar 20 19:15:44 2006 +0000
@@ -2,6 +2,20 @@
 # arch-tag: automatic-ChangeLog--arch@arch.thinkmo.de--2003-archives/moin--main--1.5
 #
 
+2006-03-20 20:15:44 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-488
+
+    Summary:
+      login page: add a hint with a link to UserPreferences page
+    Revision:
+      moin--main--1.5--patch-488
+
+    login page: add a hint with a link to UserPreferences page
+    
+
+    modified files:
+     ChangeLog MoinMoin/userform.py
+
+
 2006-03-19 02:21:38 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-487
 
     Summary:
--- a/MoinMoin/userform.py	Sun Mar 19 01:21:38 2006 +0000
+++ b/MoinMoin/userform.py	Mon Mar 20 19:15:44 2006 +0000
@@ -640,18 +640,23 @@
     def asHTML(self):
         """ Create the complete HTML form code. """
         _ = self._
-        sn = self.request.getScriptname()
-        pi = self.request.getPathinfo()
+        request = self.request
+        sn = request.getScriptname()
+        pi = request.getPathinfo()
         action = u"%s%s" % (sn, pi)
+        userprefslink = wikiutil.getSysPage(request, "UserPreferences").link_to(request)
+        hint = _("To create an account or recover a lost password, see the %(userprefslink)s page.") % {
+               'userprefslink': userprefslink}
         self._form = html.FORM(action=action)
         self._table = html.TABLE(border="0")
 
         # Use the user interface language and direction
-        lang_attr = self.request.theme.ui_lang_attr()
+        lang_attr = request.theme.ui_lang_attr()
         self._form.append(html.Raw('<div class="userprefs"%s>' % lang_attr))
 
         self._form.append(html.INPUT(type="hidden", name="action", value="login"))
         self._form.append(self._table)
+        self._form.append(html.P().append(hint))
         self._form.append(html.Raw("</div>"))
 
         self.make_row(_('Name'), [