Commit dcc9fbce authored by Grégory Wisniewski's avatar Grégory Wisniewski

Don't use more than one statement per line.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@955 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 46950e71
...@@ -39,7 +39,8 @@ from neo.locking import RLock, Lock ...@@ -39,7 +39,8 @@ from neo.locking import RLock, Lock
from ZODB.POSException import UndoError, StorageTransactionError, ConflictError from ZODB.POSException import UndoError, StorageTransactionError, ConflictError
class ConnectionClosed(Exception): pass class ConnectionClosed(Exception):
pass
class ConnectionPool(object): class ConnectionPool(object):
"""This class manages a pool of connections to storage nodes.""" """This class manages a pool of connections to storage nodes."""
......
...@@ -16,6 +16,12 @@ ...@@ -16,6 +16,12 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
from ZODB import POSException from ZODB import POSException
class NEOStorageError(POSException.StorageError): pass
class NEOStorageConflictError(NEOStorageError): pass class NEOStorageError(POSException.StorageError):
class NEOStorageNotFoundError(NEOStorageError): pass pass
class NEOStorageConflictError(NEOStorageError):
pass
class NEOStorageNotFoundError(NEOStorageError):
pass
...@@ -163,9 +163,18 @@ class SocketConnector: ...@@ -163,9 +163,18 @@ class SocketConnector:
registerConnectorHandler(SocketConnector) registerConnectorHandler(SocketConnector)
class ConnectorException(Exception): pass class ConnectorException(Exception):
class ConnectorTryAgainException(ConnectorException): pass pass
class ConnectorInProgressException(ConnectorException): pass
class ConnectorConnectionClosedException(ConnectorException): pass class ConnectorTryAgainException(ConnectorException):
class ConnectorConnectionRefusedException(ConnectorException): pass pass
class ConnectorInProgressException(ConnectorException):
pass
class ConnectorConnectionClosedException(ConnectorException):
pass
class ConnectorConnectionRefusedException(ConnectorException):
pass
...@@ -15,9 +15,20 @@ ...@@ -15,9 +15,20 @@
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class NeoException(Exception): pass class NeoException(Exception):
class ElectionFailure(NeoException): pass pass
class PrimaryFailure(NeoException): pass
class VerificationFailure(NeoException): pass class ElectionFailure(NeoException):
class OperationFailure(NeoException): pass pass
class DatabaseFailure(NeoException): pass
class PrimaryFailure(NeoException):
pass
class VerificationFailure(NeoException):
pass
class OperationFailure(NeoException):
pass
class DatabaseFailure(NeoException):
pass
...@@ -25,7 +25,8 @@ from neo.connector import getConnectorHandler ...@@ -25,7 +25,8 @@ from neo.connector import getConnectorHandler
from neo.util import bin from neo.util import bin
from neo import protocol from neo import protocol
class ActionError(Exception): pass class ActionError(Exception):
pass
def addAction(options): def addAction(options):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment