Commit bda69450 authored by Nicolas Dumazet's avatar Nicolas Dumazet

this code should only apply to filesystem constraints, if const is a dict


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41743 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 12bc6b98
......@@ -1346,8 +1346,11 @@ def setDefaultProperties(property_holder, object=None, portal=None):
new_cat_list.append(cat)
cat_list = getExistingBaseCategoryList(portal, new_cat_list)
from Products.ERP5Type.mixin.constraint import ConstraintMixin
for const in constraint_list:
for key, value in const.iteritems():
if isinstance(const, ConstraintMixin):
continue
for key, value in const.items():
if isinstance(value, Expression):
const[key] = value(econtext)
......@@ -1522,7 +1525,6 @@ def setDefaultProperties(property_holder, object=None, portal=None):
# Unnecessary to create these accessors more than once.
base_category_dict.clear()
from Products.ERP5Type.mixin.constraint import ConstraintMixin
property_holder.constraints = []
for constraint in constraint_list:
# ZODB Property Sheets constraints are no longer defined by a
......
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