Commit 6db73821 authored by Amos Latteier's avatar Amos Latteier

Fixed ZCatalog constructors - there was a problem with the default argument...

Fixed ZCatalog constructors - there was a problem with the default argument for vocad_id that broke new catalogs.
parent 7758dc46
......@@ -106,7 +106,7 @@ from AccessControl import getSecurityManager
manage_addZCatalogForm=HTMLFile('addZCatalog',globals())
def manage_addZCatalog(self, id, title, vocab_id='', REQUEST=None):
def manage_addZCatalog(self, id, title, vocab_id=None, REQUEST=None):
"""Add a ZCatalog object
"""
id=str(id)
......@@ -195,7 +195,7 @@ class ZCatalog(Folder, Persistent, Implicit):
threshold=10000
_v_total=0
def __init__(self, id, title='', vocab_id='', container=None):
def __init__(self, id, title='', vocab_id=None, container=None):
self.id=id
self.title=title
self.vocab_id = vocab_id
......
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