Example #1
0
 def get_response(self, environ=None):
     return service_unavailable(
         _("Connection to the SSH Tunnel for host '{0}' has been lost. "
           "Reconnect to the database server.").format(self.tunnel_host),
         info="SSH_TUNNEL_CONNECTION_LOST",
         data={
             'tunnel_host': self.tunnel_host
         }
     )
Example #2
0
 def get_response(self, environ=None):
     return service_unavailable(
         _("Connection to the server has been lost."),
         info="CONNECTION_LOST",
         data={
             'sid': self.sid,
             'database': self.db,
             'conn_id': self.conn_id
         })
Example #3
0
 def get_response(self, environ=None):
     return service_unavailable(
         _("Connection to the SSH Tunnel for host '{0}' has been lost. "
           "Reconnect to the database server.").format(self.tunnel_host),
         info="SSH_TUNNEL_CONNECTION_LOST",
         data={
             'tunnel_host': self.tunnel_host
         }
     )
Example #4
0
 def get_response(self, environ=None):
     return service_unavailable(
         _("Connection to the server has been lost."),
         info="CONNECTION_LOST",
         data={
             'sid': self.sid,
             'database': self.db,
             'conn_id': self.conn_id
         }
     )
Example #5
0
 def get_response(self, environ=None):
     return service_unavailable(
         _(self.CRYPT_KEY_MISSING),
         info="CRYPTKEY_MISSING",
     )
Example #6
0
 def get_response(self, environ=None):
     return service_unavailable(
         _("Crypt key is missing."),
         info="CRYPTKEY_MISSING",
     )