changeset 5384:ff8bda185098

openid server: fix TypeError
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 15 Dec 2009 22:29:07 +0100
parents 942766fe487d
children 9167b3b8895a
files MoinMoin/Page.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/Page.py	Tue Dec 15 22:10:58 2009 +0100
+++ b/MoinMoin/Page.py	Tue Dec 15 22:29:07 2009 +0100
@@ -1146,8 +1146,10 @@
                         userid = user.getUserId(request, openid_username)
 
                     openid_group_name = request.cfg.openid_server_restricted_users_group
-                    if userid is not None and not openid_group_name or \
-                            (openid_group_name in request.groups and openid_username in request.groups[openid_group_name]):
+                    if userid is not None and (
+                        not openid_group_name or (
+                            openid_group_name in request.groups and
+                            openid_username in request.groups[openid_group_name])):
                         html_head = '<link rel="openid2.provider" href="%s">' % \
                                         wikiutil.escape(request.getQualifiedURL(self.url(request,
                                                                                 querystr={'action': 'serveopenid'})), True)