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

Move CreationUndone definition in manager module.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2312 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 64adfd48
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
from neo import util from neo import util
from neo.exception import DatabaseFailure from neo.exception import DatabaseFailure
class CreationUndone(Exception):
pass
class DatabaseManager(object): class DatabaseManager(object):
"""This class only describes an interface for database managers.""" """This class only describes an interface for database managers."""
......
...@@ -23,15 +23,13 @@ from array import array ...@@ -23,15 +23,13 @@ from array import array
import string import string
from neo.storage.database import DatabaseManager from neo.storage.database import DatabaseManager
from neo.storage.database.manager import CreationUndone
from neo.exception import DatabaseFailure from neo.exception import DatabaseFailure
from neo.protocol import CellStates, ZERO_OID, ZERO_TID from neo.protocol import CellStates, ZERO_OID, ZERO_TID
from neo import util from neo import util
LOG_QUERIES = False LOG_QUERIES = False
class CreationUndone(Exception):
pass
def splitOIDField(tid, oids): def splitOIDField(tid, oids):
if (len(oids) % 8) != 0 or len(oids) == 0: if (len(oids) % 8) != 0 or len(oids) == 0:
raise DatabaseFailure('invalid oids length for tid %d: %d' % (tid, raise DatabaseFailure('invalid oids length for tid %d: %d' % (tid,
......
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