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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2010-02-11 07:39:15 UTC
  • Revision ID: matt.giuca@gmail.com-20100211073915-rirq98zg3sanvf09
Submit view: The projects list is now identical (except for radio buttons) to the view on the subjects page. It is much clearer and contains more info. The code is somewhat different, because it's a table, not a list, so I didn't abstract it. Moved a function out of subject.py to ivle.util, as it is shared by both views.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
import ivle.date
36
36
import ivle.chat
37
 
 
 
37
from ivle import util
38
38
 
39
39
class SubmitView(XHTMLView):
40
40
    """A view to submit a Subversion repository path for a project."""
136
136
        ctx['offering'] = self.offering
137
137
        ctx['path'] = self.path
138
138
        ctx['now'] = datetime.datetime.now()
 
139
        ctx['format_submission_principal'] = util.format_submission_principal
139
140
        ctx['format_datetime'] = ivle.date.make_date_nice
140
141
        ctx['format_datetime_short'] = ivle.date.format_datetime_for_paragraph
141
142