Commit 0ff7e556 authored by Alexandre Boeglin's avatar Alexandre Boeglin

validate simulation rules

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17426 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f8e66569
...@@ -71,6 +71,7 @@ class TestOrderMixin: ...@@ -71,6 +71,7 @@ class TestOrderMixin:
portal_catalog = self.getCatalogTool() portal_catalog = self.getCatalogTool()
#portal_catalog.manage_catalogClear() #portal_catalog.manage_catalogClear()
self.createCategories() self.createCategories()
self.validateRules()
def createCategories(self): def createCategories(self):
""" """
...@@ -107,6 +108,17 @@ class TestOrderMixin: ...@@ -107,6 +108,17 @@ class TestOrderMixin:
portal_type='Category', portal_type='Category',
id=category_id) id=category_id)
def validateRules(self, sequence=None, sequence_list=[]):
"""
does what it says it does
"""
rule_tool = self.getRuleTool()
for rule in rule_tool.contentValues(
portal_type=rule_tool.getPortalRuleTypeList()):
if rule.getValidationState() != 'validated':
rule.validate()
rule.recursiveReindexObject()
def stepTic(self,**kw): def stepTic(self,**kw):
self.tic() self.tic()
......
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