Mercurial > moin > 1.9
changeset 297:fe57f191672e
make login/logout showing configurable, update CHANGES
imported from: moin--main--1.5--patch-301
author | Thomas Waldmann <tw@waldmann-edv.de> |
---|---|
date | Tue, 06 Dec 2005 22:08:55 +0000 |
parents | 4e08178a630c |
children | 6c74345f4d55 |
files | MoinMoin/multiconfig.py MoinMoin/theme/__init__.py docs/CHANGES |
diffstat | 3 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/multiconfig.py Tue Dec 06 22:00:52 2005 +0000 +++ b/MoinMoin/multiconfig.py Tue Dec 06 22:08:55 2005 +0000 @@ -289,6 +289,7 @@ shared_intermap = None # can be string or list of strings (filenames) show_hosts = 1 show_interwiki = 0 + show_login = 1 show_section_numbers = 0 show_timings = 0 show_version = 0
--- a/MoinMoin/theme/__init__.py Tue Dec 06 22:00:52 2005 +0000 +++ b/MoinMoin/theme/__init__.py Tue Dec 06 22:08:55 2005 +0000 @@ -223,7 +223,7 @@ title = preferencesPage.split_title(request) userlinks.append(preferencesPage.link_to(request, text=title)) - if 1: # XXX request.cfg.user_login_show: + if request.cfg.show_login: if request.user.valid: #loghtml = preferencesPage.link_to(request, text=_("Logout")) userlinks.append("""\
--- a/docs/CHANGES Tue Dec 06 22:00:52 2005 +0000 +++ b/docs/CHANGES Tue Dec 06 22:08:55 2005 +0000 @@ -7,6 +7,8 @@ mysql stuff). Unlike http auth, they usually need some "login form". We made UserPreferences login form values (name, password, login, logout) available as kw args of the auth method, so it is easy and obvious now. + * Make login and logout show at the same place. Is only shown when + show_login is True (default). Version 1.5.0beta5: Fixes: