Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
07da2461
Commit
07da2461
authored
Dec 16, 2011
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use recurseCallMethod instead of ERP5Site_checkDataWithScript that is deprecated and inefficient.
parent
a12fa2c2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
11 deletions
+12
-11
bt5/erp5_crm/ExtensionTemplateItem/CRMMigration.py
bt5/erp5_crm/ExtensionTemplateItem/CRMMigration.py
+2
-2
bt5/erp5_crm/PathTemplateItem/portal_alarms/upgrader_migrate_event_workflow_history.xml
...portal_alarms/upgrader_migrate_event_workflow_history.xml
+1
-1
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/EventModule_migrateEventWorkflowHistory.xml
...kins/erp5_crm/EventModule_migrateEventWorkflowHistory.xml
+8
-7
bt5/erp5_crm/bt/revision
bt5/erp5_crm/bt/revision
+1
-1
No files found.
bt5/erp5_crm/ExtensionTemplateItem/CRMMigration.py
View file @
07da2461
...
...
@@ -62,5 +62,5 @@ def migrateEventWorkflowHistory(self):
return
workflow_tool
=
portal
.
portal_workflow
workflow_tool
.
_jumpToStateFor
(
self
,
new_state
)
return
[
'Event workflow migration on %s : %s -> %s'
%
(
self
.
getPath
(),
current_state
,
new_state
)
]
return
'Event workflow migration on %s : %s -> %s'
%
(
self
.
getPath
(),
current_state
,
new_state
)
bt5/erp5_crm/PathTemplateItem/portal_alarms/upgrader_migrate_event_workflow_history.xml
View file @
07da2461
...
...
@@ -8,7 +8,7 @@
<dictionary>
<item>
<key>
<string>
active_sense_method_id
</string>
</key>
<value>
<string>
E
RP5Sit
e_migrateEventWorkflowHistory
</string>
</value>
<value>
<string>
E
ventModul
e_migrateEventWorkflowHistory
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
...
...
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/E
RP5Sit
e_migrateEventWorkflowHistory.xml
→
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/E
ventModul
e_migrateEventWorkflowHistory.xml
View file @
07da2461
...
...
@@ -50,12 +50,13 @@
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
active_process = context.getPortalObject().portal_activities.newActiveProcess()\n
context.getPortalObject().ERP5Site_checkDataWithScript("Event_migrateEventWorkflowHistory",\n
tag="migrate",\n
relative_url="event_module",\n
full=1,\n
active_process=active_process.getPath())\n
<value>
<string>
portal = context.getPortalObject()\n
active_process = portal.portal_activities.newActiveProcess()\n
portal.event_module.recurseCallMethod(\n
\'Event_migrateEventWorkflowHistory\',\n
active_process=active_process,\n
min_depth=1,\n
max_depth=1)\n
print "Migration started with process id: %s" %active_process.getPath()\n
return printed\n
</string>
</value>
...
...
@@ -66,7 +67,7 @@ return printed\n
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
E
RP5Sit
e_migrateEventWorkflowHistory
</string>
</value>
<value>
<string>
E
ventModul
e_migrateEventWorkflowHistory
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_crm/bt/revision
View file @
07da2461
581
\ No newline at end of file
582
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment