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

« back to all changes in this revision

Viewing changes to ivle/webapp/security/views.py

Added config validation spec: ivle/config/ivle-spec.conf.
ivle.conf.conf: No longer needs to do the cast-to-int hack.
ivle.config: Runs against the validator (with a XXX problem).
setup.util: ivle-spec.conf is installed with a new whitelist.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    '''A view to log the current session out.'''
25
25
    template = 'logout.html'
26
26
 
27
 
    def authorize(self, req):
28
 
        return req.user is not None
29
 
 
30
27
    def populate(self, req, ctx):
31
28
        if req.method == "POST":
32
29
            req.logout()