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

« back to all changes in this revision

Viewing changes to ivle/database.py

ivle.database.Assessed: Added property is_group.
ivle-fetchsubmissions: Now able to determine the path to the repo (locally),
    and print it out (doesn't yet extract from the repo).

Show diffs side-by-side

added added

removed removed

Lines of Context:
630
630
            self.user or self.project_group, self.project)
631
631
 
632
632
    @property
 
633
    def is_group(self):
 
634
        """True if the Assessed is a group, False if it is a user."""
 
635
        return self.project_group is not None
 
636
 
 
637
    @property
633
638
    def principal(self):
634
639
        return self.project_group or self.user
635
640