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

« back to all changes in this revision

Viewing changes to ivle/database.py

  • Committer: William Grant
  • Date: 2009-12-16 10:54:33 UTC
  • mto: This revision was merged to the branch mainline in revision 1450.
  • Revision ID: me@williamgrant.id.au-20091216105433-ogebzrpmi6w5icpp
Reduce the opacity of projects that are closed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
578
578
            )
579
579
        )
580
580
 
 
581
    def has_deadline_passed(self, user):
 
582
        """Check whether the deadline has passed."""
 
583
        # XXX: Need to respect extensions.
 
584
        return self.deadline < datetime.datetime.now()
 
585
 
581
586
 
582
587
class ProjectGroup(Storm):
583
588
    """A group of students working together on a project."""