changeset 460:32b61f031df0

Fix a couple of left-over instances of using `env.href` instead of `req.href`. Closes #186. Thanks to Markus Heberling for reporting the issue and providing a patch.
author cmlenz
date Mon, 24 Sep 2007 12:50:47 +0000
parents 6537f01b4730
children f487963dd886
files bitten/web_ui.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/web_ui.py
+++ b/bitten/web_ui.py
@@ -210,7 +210,7 @@
                 rev = build.rev
                 req.hdf[prefix2] = _build_to_hdf(self.env, req, build)
                 req.hdf[prefix2 + '.rev'] = rev
-                req.hdf[prefix2 + '.rev_href'] = self.env.href.changeset(rev)
+                req.hdf[prefix2 + '.rev_href'] = req.href.changeset(rev)
                 platform = TargetPlatform.fetch(self.env, build.platform)
                 req.hdf[prefix2 + '.platform'] = platform.name
 
@@ -236,7 +236,7 @@
                 'name': config.name, 'label': config.label or config.name,
                 'active': config.active, 'path': config.path,
                 'description': description,
-                'href': self.env.href.build(config.name),
+                'href': req.href.build(config.name),
             }
 
         req.hdf['page.mode'] = 'view_inprogress'
@@ -455,7 +455,7 @@
                            platform, _status_label[status])
             message = ''
             if req.args.get('format') == 'rss':
-                href = self.env.abs_href.build(config, id)
+                href = req.abs_href.build(config, id)
                 if errors:
                     buf = StringIO()
                     prev_step = None
Copyright (C) 2012-2017 Edgewall Software