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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/subject.py

  • Committer: Matt Giuca
  • Date: 2010-02-25 07:01:51 UTC
  • mto: This revision was merged to the branch mainline in revision 1731.
  • Revision ID: matt.giuca@gmail.com-20100225070151-a95iwyrpmydzjdkr
Added links to ProjectEdit view, from offering projects page, manage projects page, and individual project pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
714
714
                projectCtx = Context()
715
715
                projectCtx['req'] = req
716
716
                projectCtx['project'] = project
 
717
                projectCtx['ProjectEdit'] = ProjectEdit
717
718
 
718
719
                setCtx['projects'].append(
719
720
                        projecttmpl.generate(projectCtx))
749
750
        self.plugin_styles[Plugin] = ["project.css"]
750
751
 
751
752
        ctx['req'] = req
 
753
        ctx['permissions'] = self.context.get_permissions(req.user,req.config)
752
754
        ctx['GroupsView'] = GroupsView
753
755
        ctx['EnrolView'] = EnrolView
754
756
        ctx['format_datetime'] = ivle.date.make_date_nice
757
759
        ctx['svn_addr'] = req.config['urls']['svn_addr']
758
760
        ctx['project'] = self.context
759
761
        ctx['user'] = req.user
 
762
        ctx['ProjectEdit'] = ProjectEdit
760
763
 
761
764
class ProjectUniquenessValidator(formencode.FancyValidator):
762
765
    """A FormEncode validator that checks that a project short_name is unique