Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 def start_request (self, request):
     DulcineaPublisher.start_request(self, request)
     
     # look at request and set up appropriate i18n translator
     self._setup_gettext(request)
Ejemplo n.º 4
0
 def __init__ (self):
     DulcineaPublisher.__init__(self)