def renderForm(self):
     form = DmsThesaurusForm(self.context, self.request)
     form.update()
     return form.render()
 def form_contents(self):
     z2.switch_on(self, request_layer=IFormLayer)
     form = UploadBookingForm(aq_inner(self.context), self.request)
     form.update()
     self.messages = form.messages
     return form.render()