Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
16839e4b
Commit
16839e4b
authored
Nov 05, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
As convention, pass Active Process.
parent
04827fb8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud_promise/Alarm_checkPromiseSlapOSModuleIdGenerator.xml
...oud_promise/Alarm_checkPromiseSlapOSModuleIdGenerator.xml
+3
-2
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud_promise/Module_assertIdGenerator.xml
...l_skins/slapos_cloud_promise/Module_assertIdGenerator.xml
+1
-1
master/bt5/slapos_cloud/bt/revision
master/bt5/slapos_cloud/bt/revision
+1
-1
No files found.
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud_promise/Alarm_checkPromiseSlapOSModuleIdGenerator.xml
View file @
16839e4b
...
@@ -54,9 +54,10 @@
...
@@ -54,9 +54,10 @@
\n
\n
portal = context.getPortalObject()\n
portal = context.getPortalObject()\n
wrong_module_list = []\n
wrong_module_list = []\n
active_process = context.newActiveProcess()\n
for module_id in portal.objectIds(spec=(\'ERP5 Folder\',)) + ["portal_simulation", "portal_activities"]:\n
for module_id in portal.objectIds(spec=(\'ERP5 Folder\',)) + ["portal_simulation", "portal_activities"]:\n
module = portal.restrictedTraverse(module_id)\n
module = portal.restrictedTraverse(module_id)\n
if not module.Module_assertIdGenerator(\'_generatePerDayId\', fixit):\n
if not module.Module_assertIdGenerator(\'_generatePerDayId\', fixit
, active_process
):\n
wrong_module_list.append(module.getRelativeUrl())\n
wrong_module_list.append(module.getRelativeUrl())\n
\n
\n
if len(wrong_module_list) != 0:\n
if len(wrong_module_list) != 0:\n
...
@@ -78,7 +79,7 @@ active_result.edit(\n
...
@@ -78,7 +79,7 @@ active_result.edit(\n
severity=severity,\n
severity=severity,\n
detail=detail)\n
detail=detail)\n
\n
\n
context.newActiveProcess()
.postResult(active_result)\n
active_process
.postResult(active_result)\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
...
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud_promise/Module_assertIdGenerator.xml
View file @
16839e4b
...
@@ -61,7 +61,7 @@ return True\n
...
@@ -61,7 +61,7 @@ return True\n
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
id_generator, fixit
</string>
</value>
<value>
<string>
id_generator, fixit
, active_process=None
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
master/bt5/slapos_cloud/bt/revision
View file @
16839e4b
190
191
\ 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