Commit 96a7a90e authored by Julien Muchembled's avatar Julien Muchembled

Fix several typos in comments/(doc)strings

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2705 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent fd17fda6
...@@ -123,7 +123,7 @@ class Storage(BaseStorage.BaseStorage, ...@@ -123,7 +123,7 @@ class Storage(BaseStorage.BaseStorage,
return self.app.load(self._getSnapshotTID(), *args, **kw) return self.app.load(self._getSnapshotTID(), *args, **kw)
def load(self, oid, version=''): def load(self, oid, version=''):
# XXX: interface deifinition states that version parameter is # XXX: interface definition states that version parameter is
# mandatory, while some ZODB tests do not provide it. For now, make # mandatory, while some ZODB tests do not provide it. For now, make
# it optional. # it optional.
assert version == '', 'Versions are not supported' assert version == '', 'Versions are not supported'
......
...@@ -25,7 +25,7 @@ from neo.client.exception import NEOStorageNotFoundError ...@@ -25,7 +25,7 @@ from neo.client.exception import NEOStorageNotFoundError
CHUNK_LENGTH = 100 CHUNK_LENGTH = 100
class Record(BaseStorage.DataRecord): class Record(BaseStorage.DataRecord):
""" TBaseStorageransaction record yielded by the Transaction object """ """ BaseStorage Transaction record yielded by the Transaction object """
def __init__(self, oid, tid, data, prev): def __init__(self, oid, tid, data, prev):
BaseStorage.DataRecord.__init__(self, oid, tid, data, prev) BaseStorage.DataRecord.__init__(self, oid, tid, data, prev)
...@@ -142,7 +142,7 @@ class Iterator(object): ...@@ -142,7 +142,7 @@ class Iterator(object):
return txn return txn
def __str__(self): def __str__(self):
return 'NEO transactions iteratpr' return 'NEO transactions iterator'
def close(self): def close(self):
self._closed = True self._closed = True
...@@ -152,7 +152,7 @@ class MQ(object): ...@@ -152,7 +152,7 @@ class MQ(object):
- The size calculation is not accurate. - The size calculation is not accurate.
Quick description of Multi-Queue algorythm: Quick description of Multi-Queue algorithm:
- There are multiple "regular" queues, plus a history queue - There are multiple "regular" queues, plus a history queue
- The queue to store an object in depends on its access frequency - The queue to store an object in depends on its access frequency
- The queue an object is in defines its lifespan (higher-index queue eq. - The queue an object is in defines its lifespan (higher-index queue eq.
......
...@@ -18,7 +18,7 @@ from neo.client.mq import MQIndex ...@@ -18,7 +18,7 @@ from neo.client.mq import MQIndex
class RevisionIndex(MQIndex): class RevisionIndex(MQIndex):
""" """
This cache index allows accessing a specifig revision of a cached object. This cache index allows accessing a specific revision of a cached object.
It requires cache key to be a 2-tuple, composed of oid and revision. It requires cache key to be a 2-tuple, composed of oid and revision.
Note: it is expected that rather few revisions are held in cache, with few Note: it is expected that rather few revisions are held in cache, with few
......
...@@ -147,7 +147,7 @@ class SocketConnector: ...@@ -147,7 +147,7 @@ class SocketConnector:
fileno = '?' fileno = '?'
else: else:
fileno = self.socket_fd fileno = self.socket_fd
result = '<%s at 0x%x fileno %s %s>' % (self.__class__.__name__, result = '<%s at 0x%x fileno %s %s, ' % (self.__class__.__name__,
id(self), fileno, self.socket.getsockname()) id(self), fileno, self.socket.getsockname())
if self.is_closed is None: if self.is_closed is None:
result += 'never opened' result += 'never opened'
......
...@@ -175,8 +175,8 @@ class Application(object): ...@@ -175,8 +175,8 @@ class Application(object):
""" """
Start the election process: Start the election process:
- Try to connect to any known master node - Try to connect to any known master node
- Wait a most for the timeout defined by bootstrap parameter - Wait at most for the timeout defined by bootstrap parameter
When done, the current process si defined either as primary or When done, the current process is defined either as primary or
secondary master node secondary master node
""" """
# Wait at most 20 seconds at bootstrap. Otherwise, wait at most # Wait at most 20 seconds at bootstrap. Otherwise, wait at most
......
...@@ -29,7 +29,7 @@ class ClientServiceHandler(MasterHandler): ...@@ -29,7 +29,7 @@ class ClientServiceHandler(MasterHandler):
pass pass
def connectionLost(self, conn, new_state): def connectionLost(self, conn, new_state):
# cancel it's transactions and forgot the node # cancel its transactions and forgot the node
app = self.app app = self.app
node = app.nm.getByUUID(conn.getUUID()) node = app.nm.getByUUID(conn.getUUID())
assert node is not None assert node is not None
......
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