Commit 167a4f4e authored by Chris McDonough's avatar Chris McDonough

Fixed problem of ZCatalog instantiation with no container and no vocab_id.

parent b21972e8
......@@ -224,8 +224,11 @@ class ZCatalog(Folder, Persistent, Implicit):
_v_transaction = None
def __init__(self, id, title='', vocab_id=None, container=None):
self=self.__of__(container)
if vocab_id is not None and container is None:
raise CatalogError, ("You cannot specify a vocab_id without "
"also specifying a container.")
if container is not None:
self=self.__of__(container)
self.id=id
self.title=title
......
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