def finish_failed_request (self, request): """Called when any exception other than a PublishError is raised.""" import sys from ZEO.Exceptions import ClientDisconnected (exc_type, exc_value, tb) = sys.exc_info() if isinstance(exc_value, ClientDisconnected): return ''' <html><body><p>Sorry, the database is currently undergoing maintenance. Please check back again in a few minutes.</p></body></html> ''' return DulcineaPublisher.finish_failed_request(self, request)
def finish_successful_request(self, request): """Commit any version upgrades that might have happened.""" from base import commit_upgraded_versioneds commit_upgraded_versioneds() DulcineaPublisher.finish_successful_request(self, request)
def start_request (self, request): DulcineaPublisher.start_request(self, request) # look at request and set up appropriate i18n translator self._setup_gettext(request)
def __init__ (self): DulcineaPublisher.__init__(self)