Commit f5014372 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

catalog: portal_type=None or effective_date=None should mean the good default...

catalog: portal_type=None or effective_date=None should mean the good default value in SQLCatalog_getDocumentValueList.

so that the utility script calling this can have arguments like
portal_type=None, **kw and have code like
getDocumentValue(portal_type=portal_type, **kw).
parent 4c07b95e
......@@ -52,10 +52,10 @@ try:
if not language:
language = portal.Localizer.get_selected_language()
if 'portal_type' not in kw:
if not kw.get('portal_type'):
kw['portal_type'] = portal.getPortalDocumentTypeList()
if 'validation_state' not in kw:
if not kw.get('validation_state'):
# XXX hardcoded validation state list.
# Use predicate or layout property instead
kw['validation_state'] = ('released', 'released_alive', 'published',
......
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