diff options
author | James E. Blair <corvus@gnu.org> | 2009-08-23 15:35:04 -0700 |
---|---|---|
committer | James E. Blair <corvus@gnu.org> | 2009-08-23 15:35:04 -0700 |
commit | 605ed3142d812370e28421018ef5b1e89a7566f1 (patch) | |
tree | edc7aeb941dabb956d5c88ab5c070dd05bf2e05a | |
parent | 08afa969049393059e6a5694f4c1662e13e66cff (diff) |
Remove port numbers for OpenID urls.
-rw-r--r-- | quoins/openid_controllers.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/quoins/openid_controllers.py b/quoins/openid_controllers.py index efb65c5..2d15c7e 100644 --- a/quoins/openid_controllers.py +++ b/quoins/openid_controllers.py | |||
@@ -104,7 +104,9 @@ class OpenIDController(TGController): | |||
104 | 104 | ||
105 | def absolute_url(self, obj): | 105 | def absolute_url(self, obj): |
106 | port = tg.config.get('server.webport', '') | 106 | port = tg.config.get('server.webport', '') |
107 | if port: | 107 | if port == '80': |
108 | port = '' | ||
109 | else: | ||
108 | port = ':'+port | 110 | port = ':'+port |
109 | return 'http://%s%s%s'%(tg.config.get('server.webhost'), port, | 111 | return 'http://%s%s%s'%(tg.config.get('server.webhost'), port, |
110 | self.url(obj)) | 112 | self.url(obj)) |