equal
deleted
inserted
replaced
167 else: |
167 else: |
168 super(CreationFormView, self).form_title(entity) |
168 super(CreationFormView, self).form_title(entity) |
169 |
169 |
170 def url(self): |
170 def url(self): |
171 """return the url associated with this view""" |
171 """return the url associated with this view""" |
172 return self.create_url(self._cw.form.get('etype')) |
172 req = self._cw |
|
173 return req.vreg["etypes"].etype_class(req.form['etype']).cw_create_url( |
|
174 req) |
173 |
175 |
174 def submited_message(self): |
176 def submited_message(self): |
175 """return the message that will be displayed on successful edition""" |
177 """return the message that will be displayed on successful edition""" |
176 return self._cw._('entity created') |
178 return self._cw._('entity created') |
177 |
179 |