[kforge-user] help : port number not displayed in serviceLocation
Achille Talon
atalon1 at gmail.com
Thu Jan 12 20:06:32 UTC 2012
I went into the code and fix it:
*find this file:*
.../kforge/kforgesyst/lib/python2.6/site-packages/kforge/django/apps/kui/views/service.py
*
modify the following function:*
def getServiceLocation(self):
service = self.getAssociationObject()
path = service.getUrlPath()
host = self.request.META.get('SERVER_NAME', '')
serv_port = self.request.META.get('SERVER_PORT', '')
if host:
if self.request.is_secure():
protocol = 'https'
else:
protocol = 'http'
return '%s://%s:%s%s' % (protocol, host, serv_port, path)
else:
return path
--
A.T.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/kforge-user/attachments/20120112/d4795926/attachment.html>
More information about the kforge-user
mailing list