From 1a1abe54557aa1a3510d12e644e6b3a0bb9b137d Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Sun, 9 Dec 2012 11:05:16 -0800 Subject: Fixes for TurboGears 2.1.5. --- quoins/controllers.py | 4 +++- quoins/templates/index.html | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/quoins/controllers.py b/quoins/controllers.py index 656aec8..c0555a6 100644 --- a/quoins/controllers.py +++ b/quoins/controllers.py @@ -367,6 +367,9 @@ class BlogController(TGController): m = ID_RE.match(id) return m.group(1) + def current_url(self, *args, **kw): + return pylons.url.current(*args, **kw) + def url(self, obj=None): if obj is None: u = tg.url(self.path) @@ -465,7 +468,6 @@ Comment: pylons.response.headers['X-XRDS-Location']=self.absolute_url('/yadis') blog = DBSession.query(Blog).get(1) d = post_paginate(start, blog.published_posts, self.post_paginate) - d.update(dict(quoins = self, blog = blog, post = None, diff --git a/quoins/templates/index.html b/quoins/templates/index.html index cf447d4..97bf963 100644 --- a/quoins/templates/index.html +++ b/quoins/templates/index.html @@ -58,10 +58,10 @@
- Previous five posts + Previous five posts - Next five posts + Next five posts
-- cgit v1.2.3