[Checkins] SVN: zc.zkzeo/trunk/src/zc/zkzeo/ Fixed bug: The ``path`` key on the ``zookeeper``

Jim Fulton jim at zope.com
Wed Dec 14 15:52:29 UTC 2011


Log message for revision 123813:
  Fixed bug: The ``path`` key on the ``zookeeper``
  server-configuration section was required, and shouldn't have been.
  

Changed:
  U   zc.zkzeo/trunk/src/zc/zkzeo/README.txt
  U   zc.zkzeo/trunk/src/zc/zkzeo/server-component.xml
  U   zc.zkzeo/trunk/src/zc/zkzeo/tests.py

-=-
Modified: zc.zkzeo/trunk/src/zc/zkzeo/README.txt
===================================================================
--- zc.zkzeo/trunk/src/zc/zkzeo/README.txt	2011-12-14 14:45:38 UTC (rev 123812)
+++ zc.zkzeo/trunk/src/zc/zkzeo/README.txt	2011-12-14 15:52:29 UTC (rev 123813)
@@ -323,6 +323,12 @@
 Change History
 ==============
 
+0.2.1 (2011-12-14)
+------------------
+
+- Fixed bug: The ``path`` key on the ``zookeeper``
+  server-configuration section was required, and shouldn't have been.
+
 0.2.0 (2011-12-13)
 ------------------
 

Modified: zc.zkzeo/trunk/src/zc/zkzeo/server-component.xml
===================================================================
--- zc.zkzeo/trunk/src/zc/zkzeo/server-component.xml	2011-12-14 14:45:38 UTC (rev 123812)
+++ zc.zkzeo/trunk/src/zc/zkzeo/server-component.xml	2011-12-14 15:52:29 UTC (rev 123813)
@@ -14,7 +14,7 @@
       </description>
     </key>
 
-    <key name="path" datatype="string" required="yes">
+    <key name="path" datatype="string" required="no">
       <description>
         The path to register the ZEO server at.
       </description>

Modified: zc.zkzeo/trunk/src/zc/zkzeo/tests.py
===================================================================
--- zc.zkzeo/trunk/src/zc/zkzeo/tests.py	2011-12-14 14:45:38 UTC (rev 123812)
+++ zc.zkzeo/trunk/src/zc/zkzeo/tests.py	2011-12-14 15:52:29 UTC (rev 123813)
@@ -264,6 +264,28 @@
     >>> _ = stop()
     """
 
+def empty_zookeeper_section():
+    """
+All of the zookeeper section keys should be optional:
+
+    >>> stop = zc.zkzeo.runzeo.test('''
+    ...     <zeo>
+    ...         address :
+    ...     </zeo>
+    ...
+    ...     <zookeeper>
+    ...     </zookeeper>
+    ...
+    ...     <filestorage>
+    ...        path demo.fs
+    ...     </filestorage>
+    ...     ''')
+
+    >>> _ = stop()
+
+
+    """
+
 def setUp(test):
     zc.zk.testing.setUp(test, tree='/databases\n  /demo\n')
     test.globs['_server_loop'] = _server_loop = ZEO.zrpc.connection.server_loop



More information about the checkins mailing list