comparison libervia/server/pages.py @ 1175:ab858db9dbee

server: fixed getPagePathFromURI
author Goffi <goffi@goffi.org>
date Fri, 03 May 2019 20:52:56 +0200
parents 0f37b65fe7c2
children 75c5e8d21c7d
comparison
equal deleted inserted replaced
1174:e0b3f1d78f8c 1175:ab858db9dbee
504 504
505 def getPageByName(self, name): 505 def getPageByName(self, name):
506 return self.vhost_root.getPageByName(name) 506 return self.vhost_root.getPageByName(name)
507 507
508 def getPagePathFromURI(self, uri): 508 def getPagePathFromURI(self, uri):
509 return self.vhost.getPagePathFromURI(uri) 509 return self.vhost_root.getPagePathFromURI(uri)
510 510
511 def getPageRedirectURL(self, request, page_name=u"login", url=None): 511 def getPageRedirectURL(self, request, page_name=u"login", url=None):
512 """generate URL for a page with redirect_url parameter set 512 """generate URL for a page with redirect_url parameter set
513 513
514 mainly used for login page with redirection to current page 514 mainly used for login page with redirection to current page