Commit e7821485 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 5d341e3c
......@@ -76,7 +76,7 @@ def server(path=None, blob_dir=None, storage_conf=None, zeo_conf=None,
"""
import os, ZEO.tests.forker
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:
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