web/controller.py
changeset 10663 54b8a1f249fb
parent 9229 739ae5366bed
child 10698 bee7de3b4e55
equal deleted inserted replaced
10662:10942ed172de 10663:54b8a1f249fb
   153             path = self._cw.form['__redirectpath']
   153             path = self._cw.form['__redirectpath']
   154             if (self._edited_entity and path != self._edited_entity.rest_path()
   154             if (self._edited_entity and path != self._edited_entity.rest_path()
   155                 and '_cwmsgid' in newparams):
   155                 and '_cwmsgid' in newparams):
   156                 # are we here on creation or modification?
   156                 # are we here on creation or modification?
   157                 if any(eid == self._edited_entity.eid
   157                 if any(eid == self._edited_entity.eid
   158                        for eid in self._cw.data.get('eidmap', {}).itervalues()):
   158                        for eid in self._cw.data.get('eidmap', {}).values()):
   159                     msg = self._cw._('click here to see created entity')
   159                     msg = self._cw._('click here to see created entity')
   160                 else:
   160                 else:
   161                     msg = self._cw._('click here to see edited entity')
   161                     msg = self._cw._('click here to see edited entity')
   162                 msg = u'(<a href="%s">%s</a>)' % (xml_escape(self._edited_entity.absolute_url()), msg)
   162                 msg = u'(<a href="%s">%s</a>)' % (xml_escape(self._edited_entity.absolute_url()), msg)
   163                 self._cw.append_to_redirect_message(msg)
   163                 self._cw.append_to_redirect_message(msg)