def before(self, form): task_add_js.need() self.request.actionmenu.add( ViewLink( u"Revenir au document", path='/%ss/{id}.html' % self.context.type_, id=self.context.id, ), ) form.set_appstruct({ "name": self.context.name, "customer_id": self.context.customer_id, "project_id": self.context.customer_id, "phase_id": self.context.customer_id, })
def before(self, form): task_add_js.need() self.request.actionmenu.add( ViewLink( u"Revenir au document", path='/%ss/{id}.html' % self.context.type_, id=self.context.id, ), ) form.set_appstruct( { "name": self.context.name, "customer_id": self.context.customer_id, "project_id": self.context.customer_id, "phase_id": self.context.customer_id, } )
def before(self, form): BaseFormView.before(self, form) populate_actionmenu(self.request) task_add_js.need()
def before(self, form): BaseFormView.before(self, form) task_add_js.need()