Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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
Show 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):
...
@@ -62,5 +62,5 @@ def migrateEventWorkflowHistory(self):
return
return
workflow_tool
=
portal
.
portal_workflow
workflow_tool
=
portal
.
portal_workflow
workflow_tool
.
_jumpToStateFor
(
self
,
new_state
)
workflow_tool
.
_jumpToStateFor
(
self
,
new_state
)
return
[
'Event workflow migration on %s : %s -> %s'
%
(
return
'Event workflow migration on %s : %s -> %s'
%
(
self
.
getPath
(),
current_state
,
new_state
)
]
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 @@
...
@@ -8,7 +8,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
active_sense_method_id
</string>
</key>
<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>
<item>
<item>
<key>
<string>
description
</string>
</key>
<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 @@
...
@@ -50,12 +50,13 @@
</item>
</item>
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
active_process = context.getPortalObject().portal_activities.newActiveProcess()\n
<value>
<string>
portal = context.getPortalObject()\n
context.getPortalObject().ERP5Site_checkDataWithScript("Event_migrateEventWorkflowHistory",\n
active_process = portal.portal_activities.newActiveProcess()\n
tag="migrate",\n
portal.event_module.recurseCallMethod(\n
relative_url="event_module",\n
\'Event_migrateEventWorkflowHistory\',\n
full=1,\n
active_process=active_process,\n
active_process=active_process.getPath())\n
min_depth=1,\n
max_depth=1)\n
print "Migration started with process id: %s" %active_process.getPath()\n
print "Migration started with process id: %s" %active_process.getPath()\n
return printed\n
return printed\n
</string>
</value>
</string>
</value>
...
@@ -66,7 +67,7 @@ return printed\n
...
@@ -66,7 +67,7 @@ return printed\n
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
E
RP5Sit
e_migrateEventWorkflowHistory
</string>
</value>
<value>
<string>
E
ventModul
e_migrateEventWorkflowHistory
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/erp5_crm/bt/revision
View file @
07da2461
581
582
\ No newline at end of file
\ 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