~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/forum/__init__.py

  • Committer: William Grant
  • Date: 2009-04-28 06:39:38 UTC
  • Revision ID: grantw@unimelb.edu.au-20090428063938-9m60hweimymu3gdm
Use Request.make_path everywhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
from ivle.webapp.base.xhtml import XHTMLView
28
28
from ivle.webapp.base.plugins import ViewPlugin, CookiePlugin, MediaPlugin
29
 
import ivle.util
30
29
import ivle.config
31
30
 
32
31
class ForumView(XHTMLView):
42
41
        self.plugin_styles[Plugin] = ['forum.css']
43
42
        forum_base = req.config.plugin_configs[Plugin]['base']
44
43
 
45
 
        ctx['url'] = ivle.util.make_path(os.path.join(forum_base, self.path))
 
44
        ctx['url'] = req.make_path(os.path.join(forum_base, self.path))
46
45
 
47
46
class ForumBoardView(ForumView):
48
47
    def __init__(self, req, board):