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

« back to all changes in this revision

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

Modified the database so that exercises are now stored in the database, rather
than in flat files.

This also necessitated adding new tables and storm classes for test suites
and test cases.

Note that this commit merely changes the database and adds a script to
upload exercises. The code for actually reading exercises has yet
to be changed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        return self.context.get_permissions(user)
29
29
 
30
30
    def authorize(self, req):
31
 
        self.perms = self.get_permissions(req.user)
 
31
        perms = self.get_permissions(req.user)
32
32
 
33
 
        return self.permission is None or self.permission in self.perms
 
33
        return self.permission is None or self.permission in perms