web/views/basecontrollers.py
branchstable
changeset 1868 af1ae863606d
parent 1857 46f975203f4f
child 1889 874a055c373b
equal deleted inserted replaced
1867:b2fe73a55899 1868:af1ae863606d
   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: