Commit a5df8621 authored by Jim Fulton's avatar Jim Fulton

Made the server function a tad more convenient by falling back to a

mapping storage when none is given.
parent f074651a
...@@ -76,7 +76,7 @@ def server(path=None, blob_dir=None, storage_conf=None, zeo_conf=None, ...@@ -76,7 +76,7 @@ def server(path=None, blob_dir=None, storage_conf=None, zeo_conf=None,
""" """
import os, ZEO.tests.forker import os, ZEO.tests.forker
if storage_conf is None and path is None: if storage_conf is None and path is None:
raise TypeError("You must specify either a storage_conf or file path.") storage_conf = '<mappingstorage>\n</mappingstorage>'
if port is None and zeo_conf is None: if port is None and zeo_conf is None:
port = ZEO.tests.forker.get_port() port = ZEO.tests.forker.get_port()
......
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