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

« back to all changes in this revision

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

Merge setup-stuff.

phpBB is gone, configuration, setup and jail building are completely redone.

Please read doc/setup/install_proc.txt, or you'll not get far.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
from ivle.webapp.base.xhtml import XHTMLView
28
28
from ivle.webapp.base.plugins import ViewPlugin, CookiePlugin, MediaPlugin
29
29
import ivle.util
30
 
import ivle.conf
 
30
import ivle.config
31
31
 
32
32
class ForumView(XHTMLView):
33
33
    appname = 'forum'
40
40
 
41
41
    def populate(self, req, ctx):
42
42
        self.plugin_styles[Plugin] = ['forum.css']
43
 
 
44
 
        forum_base = "php/phpBB3"
 
43
        forum_base = req.config.plugin_configs[Plugin]['base']
45
44
 
46
45
        ctx['url'] = ivle.util.make_path(os.path.join(forum_base, self.path))
47
46
 
54
53
        self.path = 'viewtopic.php?t=' + topic
55
54
 
56
55
def make_forum_cookie(user):
57
 
    secret = ivle.conf.forum_secret
 
56
    secret = ivle.config.Config().plugin_configs[Plugin]['secret']
58
57
 
59
58
    login = quote(user.login)
60
59
    nick = quote(user.nick)