[Neo-report] r2770 jm - in /trunk/neo: client/ tests/ tests/functional/
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon May 30 18:45:58 CEST 2011
Author: jm
Date: Mon May 30 18:45:58 2011
New Revision: 2770
Log:
client: remove obsolete 'connector' config option
Modified:
trunk/neo/client/Storage.py
trunk/neo/client/app.py
trunk/neo/client/component.xml
trunk/neo/tests/functional/__init__.py
trunk/neo/tests/testEvent.py
Modified: trunk/neo/client/Storage.py
==============================================================================
--- trunk/neo/client/Storage.py [iso-8859-1] (original)
+++ trunk/neo/client/Storage.py [iso-8859-1] Mon May 30 18:45:58 2011
@@ -56,7 +56,7 @@ class Storage(BaseStorage.BaseStorage,
ZODB.interfaces.IMVCCStorage,
)))
- def __init__(self, master_nodes, name, connector=None, read_only=False,
+ def __init__(self, master_nodes, name, read_only=False,
compress=None, logfile=None, verbose=False, _app=None, **kw):
"""
Do not pass those parameters (used internally):
@@ -70,13 +70,11 @@ class Storage(BaseStorage.BaseStorage,
# Warning: _is_read_only is used in BaseStorage, do not rename it.
self._is_read_only = read_only
if _app is None:
- _app = Application(master_nodes, name, connector,
- compress=compress)
+ _app = Application(master_nodes, name, compress=compress)
self.app = _app
# Used to clone self (see new_instance & IMVCCStorage definition).
self._init_args = (master_nodes, name)
self._init_kw = {
- 'connector': connector,
'read_only': read_only,
'compress': compress,
'logfile': logfile,
Modified: trunk/neo/client/app.py
==============================================================================
--- trunk/neo/client/app.py [iso-8859-1] (original)
+++ trunk/neo/client/app.py [iso-8859-1] Mon May 30 18:45:58 2011
@@ -66,8 +66,7 @@ else:
class Application(object):
"""The client node application."""
- def __init__(self, master_nodes, name, connector=None, compress=True,
- **kw):
+ def __init__(self, master_nodes, name, compress=True, **kw):
# Start polling thread
self.em = EventManager()
self.poll_thread = ThreadedPoll(self.em, name=name)
Modified: trunk/neo/client/component.xml
==============================================================================
--- trunk/neo/client/component.xml [iso-8859-1] (original)
+++ trunk/neo/client/component.xml [iso-8859-1] Mon May 30 18:45:58 2011
@@ -14,11 +14,6 @@
Give the name of the cluster
</description>
</key>
- <key name="connector">
- <description>
- Give the name of the connector used at low-level
- </description>
- </key>
<key name="compress" datatype="boolean">
<description>
If true, enable automatic data compression (compression is only used
Modified: trunk/neo/tests/functional/__init__.py
==============================================================================
--- trunk/neo/tests/functional/__init__.py [iso-8859-1] (original)
+++ trunk/neo/tests/functional/__init__.py [iso-8859-1] Mon May 30 18:45:58 2011
@@ -35,7 +35,7 @@ import neo.scripts
from neo.neoctl.neoctl import NeoCTL, NotReadyException
from neo.lib import setupLog
from neo.lib.protocol import ClusterStates, NodeTypes, CellStates, NodeStates
-from neo.lib.util import dump, SOCKET_CONNECTORS_DICT
+from neo.lib.util import dump
from neo.tests import DB_ADMIN, DB_PASSWD, NeoTestBase, buildUrlFromString, \
ADDRESS_TYPE, IP_VERSION_FORMAT_DICT, getTempDirectory
from neo.tests.cluster import SocketLock
@@ -419,16 +419,14 @@ class NEOCluster(object):
def getNEOCTL(self):
return self.neoctl
- def getZODBStorage(self,connector = SOCKET_CONNECTORS_DICT[ADDRESS_TYPE], **kw):
+ def getZODBStorage(self, **kw):
master_nodes = self.master_nodes.replace('/', ' ')
result = Storage(
master_nodes=master_nodes,
name=self.cluster_name,
- connector=connector,
logfile=os.path.join(self.temp_dir, 'client.log'),
verbose=self.verbose,
- **kw
- )
+ **kw)
self.zodb_storage_list.append(result)
return result
Modified: trunk/neo/tests/testEvent.py
==============================================================================
--- trunk/neo/tests/testEvent.py [iso-8859-1] (original)
+++ trunk/neo/tests/testEvent.py [iso-8859-1] Mon May 30 18:45:58 2011
@@ -16,7 +16,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import unittest
from mock import Mock
-from time import time
from neo.tests import NeoUnitTestBase
from neo.lib.epoll import Epoll
from neo.lib.event import EpollEventManager
More information about the Neo-report
mailing list