Commit 72b40da0 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Get base categories from portal_categories.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1839 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bb15a06f
......@@ -902,7 +902,7 @@ def setDefaultProperties(klass, object=None):
createCategoryAccessors(klass, cat)
createValueAccessors(klass, cat)
if object is not None and klass.__name__ == "Base": # XXX use if possible is and real class
for cat in object.getBaseCategoryList():
for cat in object.portal_categories.getBaseCategoryList():
createRelatedValueAccessors(klass, cat)
# Create the constraint method list - always check type
klass.constraints = [Constraint.PropertyTypeValidity(id='type_check')]
......
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