equal
deleted
inserted
replaced
206 else: |
206 else: |
207 status, args = (False, '???') |
207 status, args = (False, '???') |
208 self.req.set_content_type('text/html') |
208 self.req.set_content_type('text/html') |
209 jsarg = simplejson.dumps( (status, args) ) |
209 jsarg = simplejson.dumps( (status, args) ) |
210 return """<script type="text/javascript"> |
210 return """<script type="text/javascript"> |
211 window.parent.handleFormValidationResponse('entityForm', null, %s); |
211 window.parent.handleFormValidationResponse('entityForm', null, null, %s); |
212 </script>""" % simplejson.dumps( (status, args) ) |
212 </script>""" % simplejson.dumps( (status, args) ) |
213 |
213 |
214 def validation_error(self, err): |
214 def validation_error(self, err): |
215 self.req.cnx.rollback() |
215 self.req.cnx.rollback() |
216 try: |
216 try: |