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

« back to all changes in this revision

Viewing changes to ivle/database.py

Created a new view for IVLE, allowing lecturers and tutors to 
administrate projects.

At the moment, this new view can add projectsets, and add projects.
It can also view the details of a project.

Show diffs side-by-side

added added

removed removed

Lines of Context:
387
387
        return "<%s %d in %r>" % (type(self).__name__, self.id,
388
388
                                  self.offering)
389
389
 
 
390
    def get_permissions(self, user):
 
391
        return self.offering.get_permissions(user)
 
392
 
390
393
class Project(Storm):
391
394
    __storm_table__ = "project"
392
395
 
437
440
 
438
441
        return ps
439
442
 
 
443
    def get_permissions(self, user):
 
444
        return self.project_set.offering.get_permissions(user)
 
445
 
440
446
 
441
447
class ProjectGroup(Storm):
442
448
    __storm_table__ = "project_group"