From 605ed3142d812370e28421018ef5b1e89a7566f1 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Sun, 23 Aug 2009 15:35:04 -0700 Subject: Remove port numbers for OpenID urls. --- quoins/openid_controllers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): def absolute_url(self, obj): port = tg.config.get('server.webport', '') - if port: + if port == '80': + port = '' + else: port = ':'+port return 'http://%s%s%s'%(tg.config.get('server.webhost'), port, self.url(obj)) -- cgit v1.2.3