equal
deleted
inserted
replaced
422 |
422 |
423 :rtype: str |
423 :rtype: str |
424 :return: the result of the pusblished url |
424 :return: the result of the pusblished url |
425 """ |
425 """ |
426 # don't log form values they may contains sensitive information |
426 # don't log form values they may contains sensitive information |
427 self.info('publish "%s" (%s, form params: %s)', |
427 self.debug('publish "%s" (%s, form params: %s)', |
428 path, req.session.sessionid, req.form.keys()) |
428 path, req.session.sessionid, req.form.keys()) |
429 # remove user callbacks on a new request (except for json controllers |
429 # remove user callbacks on a new request (except for json controllers |
430 # to avoid callbacks being unregistered before they could be called) |
430 # to avoid callbacks being unregistered before they could be called) |
431 tstart = clock() |
431 tstart = clock() |
432 commited = False |
432 commited = False |
433 try: |
433 try: |
498 pass # ignore rollback error at this point |
498 pass # ignore rollback error at this point |
499 # request may be referenced by "onetime callback", so clear its entity |
499 # request may be referenced by "onetime callback", so clear its entity |
500 # cache to avoid memory usage |
500 # cache to avoid memory usage |
501 req.drop_entity_cache() |
501 req.drop_entity_cache() |
502 self.add_undo_link_to_msg(req) |
502 self.add_undo_link_to_msg(req) |
503 self.info('query %s executed in %s sec', req.relative_path(), clock() - tstart) |
503 self.debug('query %s executed in %s sec', req.relative_path(), clock() - tstart) |
504 return result |
504 return result |
505 |
505 |
506 ### Error handler |
506 ### Error handler |
507 def validation_error_handler(self, req, ex): |
507 def validation_error_handler(self, req, ex): |
508 ex.errors = dict((k, v) for k, v in ex.errors.items()) |
508 ex.errors = dict((k, v) for k, v in ex.errors.items()) |