Commit badf9e68 authored by wenjie.zheng's avatar wenjie.zheng

CheckSkin.py: compatibility modification for transition, script, worklist getter.

parent 759813b1
...@@ -310,8 +310,8 @@ def fixSkinNames(self, REQUEST=None, file=None, dry_run=0): ...@@ -310,8 +310,8 @@ def fixSkinNames(self, REQUEST=None, file=None, dry_run=0):
# Workflows. # Workflows.
for wf in self.portal_workflow.objectValues(): for wf in self.portal_workflow.objectValues():
# Transitions. # Transitions.
for id in wf.transitions.objectIds(): Transition_value_dict = wf.getTransitionValueList()
transition = wf.transitions._getOb(id) for id, transition in Transition_value_dict.items():
text = transition.actbox_url text = transition.actbox_url
for info in info_list: for info in info_list:
if info.regexp.search(text) is not None: if info.regexp.search(text) is not None:
...@@ -323,8 +323,8 @@ def fixSkinNames(self, REQUEST=None, file=None, dry_run=0): ...@@ -323,8 +323,8 @@ def fixSkinNames(self, REQUEST=None, file=None, dry_run=0):
transition.actbox_url = text transition.actbox_url = text
break break
# Worklists. # Worklists.
for id in wf.worklists.objectIds(): worklist_value_dict = wf.getWorklistValueList()
worklist = wf.worklists._getOb(id) for id, worklist in worklist_value_dict.items():
text = worklist.actbox_url text = worklist.actbox_url
for info in info_list: for info in info_list:
if info.regexp.search(text) is not None: if info.regexp.search(text) is not None:
...@@ -336,8 +336,8 @@ def fixSkinNames(self, REQUEST=None, file=None, dry_run=0): ...@@ -336,8 +336,8 @@ def fixSkinNames(self, REQUEST=None, file=None, dry_run=0):
worklist.actbox_url = text worklist.actbox_url = text
break break
# Scripts. # Scripts.
for id in wf.scripts.objectIds(): script_value_dict = wf.getScriptValueList()
script = wf.scripts._getOb(id) for id, script in script_value_dict.items():
text = script.manage_FTPget() text = script.manage_FTPget()
name_list = [] name_list = []
for info in info_list: for info in info_list:
......
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