Commit 240d2092 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! ERP5Workflow: DC Workflows are now ERP5 objects (!1378).

parent eb2b440a
...@@ -31,7 +31,7 @@ import os ...@@ -31,7 +31,7 @@ import os
import random import random
import unittest import unittest
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.DCWorkflow.DCWorkflow import ValidationFailed from Products.ERP5Type.Core.Workflow import ValidationFailed
from AccessControl import Unauthorized from AccessControl import Unauthorized
class TestCertificateAuthority(ERP5TypeTestCase): class TestCertificateAuthority(ERP5TypeTestCase):
......
...@@ -10,9 +10,9 @@ portal = context.getPortalObject() ...@@ -10,9 +10,9 @@ portal = context.getPortalObject()
query_dict = {} query_dict = {}
workflow = portal.portal_workflow.ticket_workflow workflow = portal.portal_workflow.ticket_workflow
workflow_state_var = workflow.variables.getStateVar() workflow_state_var = workflow.getStateVariable()
for worklist in workflow.worklists.objectValues(): for worklist in workflow.getWorklistValueList():
identity_criterion_dict = worklist.getIdentityCriterionDict() identity_criterion_dict = worklist.getIdentityCriterionDict()
if portal_type \ if portal_type \
and 'portal_type' in worklist.getCriterionPropertyList() \ and 'portal_type' in worklist.getCriterionPropertyList() \
......
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