[Zodb-checkins] CVS: Zope/lib/python/ZODB - StorageTypes.py:1.2
Chris McDonough
chrism@zope.com
Mon, 25 Nov 2002 03:42:58 -0500
Update of /cvs-repository/Zope/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv4921
Modified Files:
StorageTypes.py
Log Message:
Check for file_name.
=== Zope/lib/python/ZODB/StorageTypes.py 1.1 => 1.2 ===
--- Zope/lib/python/ZODB/StorageTypes.py:1.1 Sat Nov 23 01:35:05 2002
+++ Zope/lib/python/ZODB/StorageTypes.py Mon Nov 25 03:42:57 2002
@@ -43,6 +43,9 @@
if kw.has_key(name):
kw[name] = asBoolean(kw[name])
+ if not kw.has_key('file_name'):
+ raise RuntimeError, 'A file_name argument is required for FileStorage'
+
return kw