[Neo-report] r2705 jm - in /trunk/neo: client/ lib/ master/ master/handlers/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 7 15:02:59 CEST 2011


Author: jm
Date: Thu Apr  7 15:02:59 2011
New Revision: 2705

Log:
Fix several typos in comments/(doc)strings

Modified:
    trunk/neo/client/Storage.py
    trunk/neo/client/iterator.py
    trunk/neo/client/mq.py
    trunk/neo/client/mq_index.py
    trunk/neo/lib/connector.py
    trunk/neo/master/app.py
    trunk/neo/master/handlers/client.py

Modified: trunk/neo/client/Storage.py
==============================================================================
--- trunk/neo/client/Storage.py [iso-8859-1] (original)
+++ trunk/neo/client/Storage.py [iso-8859-1] Thu Apr  7 15:02:59 2011
@@ -123,7 +123,7 @@ class Storage(BaseStorage.BaseStorage,
         return self.app.load(self._getSnapshotTID(), *args, **kw)
 
     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
         # it optional.
         assert version == '', 'Versions are not supported'

Modified: trunk/neo/client/iterator.py
==============================================================================
--- trunk/neo/client/iterator.py [iso-8859-1] (original)
+++ trunk/neo/client/iterator.py [iso-8859-1] Thu Apr  7 15:02:59 2011
@@ -25,7 +25,7 @@ from neo.client.exception import NEOStor
 CHUNK_LENGTH = 100
 
 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):
         BaseStorage.DataRecord.__init__(self, oid, tid, data, prev)
@@ -142,7 +142,7 @@ class Iterator(object):
         return txn
 
     def __str__(self):
-        return 'NEO transactions iteratpr'
+        return 'NEO transactions iterator'
 
     def close(self):
         self._closed = True

Modified: trunk/neo/client/mq.py
==============================================================================
--- trunk/neo/client/mq.py [iso-8859-1] (original)
+++ trunk/neo/client/mq.py [iso-8859-1] Thu Apr  7 15:02:59 2011
@@ -152,7 +152,7 @@ class MQ(object):
 
       - 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
       - 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.

Modified: trunk/neo/client/mq_index.py
==============================================================================
--- trunk/neo/client/mq_index.py [iso-8859-1] (original)
+++ trunk/neo/client/mq_index.py [iso-8859-1] Thu Apr  7 15:02:59 2011
@@ -18,7 +18,7 @@ from neo.client.mq import 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.
 
     Note: it is expected that rather few revisions are held in cache, with few

Modified: trunk/neo/lib/connector.py
==============================================================================
--- trunk/neo/lib/connector.py [iso-8859-1] (original)
+++ trunk/neo/lib/connector.py [iso-8859-1] Thu Apr  7 15:02:59 2011
@@ -147,7 +147,7 @@ class SocketConnector:
             fileno = '?'
         else:
             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())
         if self.is_closed is None:
             result += 'never opened'

Modified: trunk/neo/master/app.py
==============================================================================
--- trunk/neo/master/app.py [iso-8859-1] (original)
+++ trunk/neo/master/app.py [iso-8859-1] Thu Apr  7 15:02:59 2011
@@ -175,8 +175,8 @@ class Application(object):
         """
             Start the election process:
                 - Try to connect to any known master node
-                - Wait a most for the timeout defined by bootstrap parameter
-            When done, the current process si defined either as primary or
+                - Wait at most for the timeout defined by bootstrap parameter
+            When done, the current process is defined either as primary or
             secondary master node
         """
         # Wait at most 20 seconds at bootstrap. Otherwise, wait at most

Modified: trunk/neo/master/handlers/client.py
==============================================================================
--- trunk/neo/master/handlers/client.py [iso-8859-1] (original)
+++ trunk/neo/master/handlers/client.py [iso-8859-1] Thu Apr  7 15:02:59 2011
@@ -29,7 +29,7 @@ class ClientServiceHandler(MasterHandler
         pass
 
     def connectionLost(self, conn, new_state):
-        # cancel it's transactions and forgot the node
+        # cancel its transactions and forgot the node
         app = self.app
         node = app.nm.getByUUID(conn.getUUID())
         assert node is not None




More information about the Neo-report mailing list