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

« back to all changes in this revision

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

Fixed a broken link when adding a new project.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
            raise NotFound()
45
45
 
46
46
    def _project_url(self, project):
47
 
        return "/subjects/" + str(self.context.offering.subject.id) + "/" +\
48
 
               str(self.context.offering.semester.year) + "/" +\
49
 
               self.context.offering.semester.semester + "/+projectsets/" +\
50
 
               str(self.context.id) + "/+projects/+new"
 
47
        return "/subjects/%s/%s/%s/+projectsets/%d/+projects/%s" % \
 
48
                (self.context.offering.subject.short_name, 
 
49
                 self.context.offering.semester.year,
 
50
                 self.context.offering.semester.semester,
 
51
                 self.context.id,
 
52
                 project.short_name)
51
53
 
52
54
    @named_operation('edit')
53
55
    def add_project(self, req, name, short_name, synopsis):