web/views/editforms.py
changeset 6039 6e84db1b3e44
parent 5940 0e3ae19b181a
child 6225 a176e68b7d0d
equal deleted inserted replaced
6033:09db6f4619c9 6039:6e84db1b3e44
   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