107
119
self.rtr.add_forward(Root, None, root_to_subject, 1)
108
120
self.rtr.add_forward(Subject, None, subject_to_offering, 2)
109
121
self.rtr.add_forward(Offering, '+files', offering_to_files, 0)
122
self.rtr.add_forward(OfferingFiles, None, offering_files_to_file, INF)
110
123
self.rtr.add_view(Subject, '+index', SubjectIndex, viewset='browser')
111
124
self.rtr.add_view(Subject, '+edit', SubjectEdit, viewset='browser')
112
125
self.rtr.add_view(Offering, '+index', OfferingIndex, viewset='browser')
113
126
self.rtr.add_view(Offering, '+index', OfferingAPIIndex, viewset='api')
114
127
self.rtr.add_view(OfferingFiles, '+index', OfferingFilesIndex,
129
self.rtr.add_view(OfferingFile, '+index', OfferingFileIndex,
118
133
assert_equal(self.rtr.resolve('/info1'),