web/controller.py
changeset 8696 0bb18407c053
parent 8258 88a7d2c49d39
child 8697 574bb05e40a4
equal deleted inserted replaced
8695:358d8bed9626 8696:0bb18407c053
   150             path = self._cw.form['__redirectpath']
   150             path = self._cw.form['__redirectpath']
   151             if (self._edited_entity and path != self._edited_entity.rest_path()
   151             if (self._edited_entity and path != self._edited_entity.rest_path()
   152                 and '_cwmsgid' in newparams):
   152                 and '_cwmsgid' in newparams):
   153                 # are we here on creation or modification?
   153                 # are we here on creation or modification?
   154                 if any(eid == self._edited_entity.eid
   154                 if any(eid == self._edited_entity.eid
   155                        for eid in self._cw.data.get('eidmap', {}).values()):
   155                        for eid in self._cw.data.get('eidmap', {}).itervalues()):
   156                     msg = self._cw._('click here to see created entity')
   156                     msg = self._cw._('click here to see created entity')
   157                 else:
   157                 else:
   158                     msg = self._cw._('click here to see edited entity')
   158                     msg = self._cw._('click here to see edited entity')
   159                 msg = u'(<a href="%s">%s</a>)' % (xml_escape(self._edited_entity.absolute_url()), msg)
   159                 msg = u'(<a href="%s">%s</a>)' % (xml_escape(self._edited_entity.absolute_url()), msg)
   160                 self._cw.append_to_redirect_message(msg)
   160                 self._cw.append_to_redirect_message(msg)