299
299
self.rtr.add_reverse(Subject, subject_url)
300
300
self.rtr.add_reverse(Offering, offering_url)
301
301
self.rtr.add_reverse(OfferingFiles, offering_files_url)
302
303
self.rtr.add_view(Subject, '+index', SubjectIndex, viewset='browser')
303
304
self.rtr.add_view(Subject, '+edit', SubjectEdit, viewset='browser')
304
305
self.rtr.add_view(Offering, '+index', OfferingIndex, viewset='browser')
305
306
self.rtr.add_view(Offering, '+index', OfferingAPIIndex, viewset='api')
307
self.rtr.add_view(Project, '+index', ProjectIndex, viewset='browser')
308
self.rtr.add_view(Offering, ('+projects', '+new'), OfferingAddProject,
308
312
assert_equal(self.rtr.generate(self.r.subjects['info1']), '/info1')