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

« back to all changes in this revision

Viewing changes to ivle/webapp/base/xhtml.py

  • Committer: William Grant
  • Date: 2009-04-28 05:10:36 UTC
  • Revision ID: grantw@unimelb.edu.au-20090428051036-f0teat0qpex7xlul
XHTMLView no longer uses ivle.conf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
from ivle.webapp.base.views import BaseView
29
29
from ivle.webapp.base.plugins import ViewPlugin, OverlayPlugin
30
30
from ivle.webapp.errors import HTTPError, Unauthorized
31
 
import ivle.conf
32
31
import ivle.util
33
32
 
34
33
class XHTMLView(BaseView):
101
100
 
102
101
    def populate_headings(self, req, ctx):
103
102
        ctx['favicon'] = None
104
 
        ctx['root_dir'] = ivle.conf.root_dir
105
 
        ctx['public_host'] = ivle.conf.public_host
106
 
        ctx['svn_base'] = ivle.conf.svn_addr
 
103
        ctx['root_dir'] = req.config['urls']['root']
 
104
        ctx['public_host'] = req.config['urls']['public_host']
 
105
        ctx['svn_base'] = req.config['urls']['svn_addr']
107
106
        ctx['write_javascript_settings'] = req.write_javascript_settings
108
107
        if req.user:
109
108
            ctx['login'] = req.user.login