Mercurial > hg > genshi_view
changeset 9:cb8ebcb8b4fd
more corrections
author | k0s <k0scist@gmail.com> |
---|---|
date | Fri, 06 Nov 2009 16:57:06 -0500 |
parents | af07c17c7b2f |
children | ffdfb79b30bf |
files | genshi_view/template/+package+/handlers.py genshi_view/template/+package+/templates/index.html |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/genshi_view/template/+package+/handlers.py Fri Nov 06 16:53:32 2009 -0500 +++ b/genshi_view/template/+package+/handlers.py Fri Nov 06 16:57:06 2009 -0500 @@ -19,10 +19,10 @@ def __init__(self, app, request): if request.method not in self.methods: raise HandlerMatchException - self.path = request.path.info.strip('/').split('/') + self.path = request.path_info.strip('/').split('/') if self.path == ['']: self.path = [] - if path[:len(handler_path)] != self.handler_path: + if self.path[:len(self.handler_path)] != self.handler_path: raise HandlerMatchException self.app = app self.request = request @@ -45,7 +45,7 @@ class GenshiHandler(Handler): def __init__(self, app, request): - Handler.__init__(self, request) + Handler.__init__(self, app, request) self.data = { 'request': request } def __call__(self):
--- a/genshi_view/template/+package+/templates/index.html Fri Nov 06 16:53:32 2009 -0500 +++ b/genshi_view/template/+package+/templates/index.html Fri Nov 06 16:57:06 2009 -0500 @@ -4,6 +4,6 @@ <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/"> <body> -Hello ${subject}! +Hello ${request.remote_user or 'world'}! </body> </html>