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

« back to all changes in this revision

Viewing changes to ivle/webapp/submit/__init__.py

  • Committer: William Grant
  • Date: 2009-03-26 10:12:18 UTC
  • mto: (1165.3.1 submissions)
  • mto: This revision was merged to the branch mainline in revision 1174.
  • Revision ID: grantw@unimelb.edu.au-20090326101218-ilh28dl5o1i7kt76
Disable project radio buttons if they are closed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
"""Project submissions user interface."""
21
21
 
22
22
import os.path
 
23
import datetime
23
24
 
24
25
from ivle.database import (User, ProjectGroup, Offering, Subject, Semester,
25
26
                           ProjectSet)
52
53
    def populate(self, req, ctx):
53
54
        ctx['principal'] = self.context
54
55
        ctx['path'] = self.path
 
56
        ctx['now'] = datetime.datetime.now()
55
57
        ctx['format_datetime'] = ivle.date.format_datetime_for_paragraph
56
58
 
57
59