From f5363a360cef21e39cd2eff6cd042433cb984efe Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Mon, 3 May 2010 20:26:07 +0200 Subject: [PATCH] use url instead of url_for --- ddportfolioservice/lib/helpers.py | 2 +- ddportfolioservice/templates/base.mako | 6 +++--- ddportfolioservice/templates/showform.mako | 4 ++-- ddportfolioservice/templates/showformscript.mako | 2 +- ddportfolioservice/templates/showurls.mako | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ddportfolioservice/lib/helpers.py b/ddportfolioservice/lib/helpers.py index 57e9d64..88fa1f8 100644 --- a/ddportfolioservice/lib/helpers.py +++ b/ddportfolioservice/lib/helpers.py @@ -30,4 +30,4 @@ from webhelpers.html.tags import stylesheet_link, javascript_link, image, \ form, text, radio, submit, end_form, link_to from webhelpers.text import truncate from webhelpers.textile import textile -from routes import url_for +from pylons import url diff --git a/ddportfolioservice/templates/base.mako b/ddportfolioservice/templates/base.mako index 830acba..541fb7a 100644 --- a/ddportfolioservice/templates/base.mako +++ b/ddportfolioservice/templates/base.mako @@ -24,12 +24,12 @@ License along with this program. If not, see ${_('Debian Developer Portfolio Service')}${self.titleaddon()} - ${h.stylesheet_link(h.url_for('/stylesheets/style.css'))} + ${h.stylesheet_link(h.url('/stylesheets/style.css'))} ${self.extrahead()}