Commit 840c4cd4 authored by Chris McDonough's avatar Chris McDonough

Check for file_name.

parent 240261bd
...@@ -43,6 +43,9 @@ def convertFileStorageArgs(quota=None, stop=None, **kw): ...@@ -43,6 +43,9 @@ def convertFileStorageArgs(quota=None, stop=None, **kw):
if kw.has_key(name): if kw.has_key(name):
kw[name] = asBoolean(kw[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 return kw
......
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