equal
deleted
inserted
replaced
189 if hasattr(self, '_form_previous_values'): |
189 if hasattr(self, '_form_previous_values'): |
190 # XXX behaviour changed in 3.6.1, warn |
190 # XXX behaviour changed in 3.6.1, warn |
191 warn('[3.6.1] restore_previous_post already called, remove this call', |
191 warn('[3.6.1] restore_previous_post already called, remove this call', |
192 DeprecationWarning, stacklevel=2) |
192 DeprecationWarning, stacklevel=2) |
193 return |
193 return |
194 forminfo = self._cw.get_session_data(sessionkey, pop=True) |
194 forminfo = self._cw.session.data.pop(sessionkey, None) |
195 if forminfo: |
195 if forminfo: |
196 self._form_previous_values = forminfo['values'] |
196 self._form_previous_values = forminfo['values'] |
197 self._form_valerror = forminfo['error'] |
197 self._form_valerror = forminfo['error'] |
198 # if some validation error occured on entity creation, we have to |
198 # if some validation error occured on entity creation, we have to |
199 # get the original variable name from its attributed eid |
199 # get the original variable name from its attributed eid |