equal
deleted
inserted
replaced
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) |