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

« back to all changes in this revision

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

MergedĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
import ivle.config
31
31
 
32
32
class ForumView(XHTMLView):
33
 
    appname = 'forum'
 
33
    tab = 'forum'
34
34
 
35
35
    def __init__(self, req, path):
36
36
        self.path = path
61
61
    if user.email != None:
62
62
        email = quote(user.email)
63
63
 
64
 
    role = quote(str(user.role))
 
64
    role = 'admin' if user.admin else 'student' # XXX
65
65
 
66
66
    hashtext = login + nick + email + role + secret
67
67
    hash = hashlib.md5(hashtext).hexdigest()