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
0
Merge Requests
0
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
Roque
slapos.core
Commits
160f277d
Commit
160f277d
authored
Mar 13, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Narrow to setup deliveries.
Raise in case of bad state.
parent
7b914c08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/Person_storeOpenOrderJournal.xml
.../portal_skins/vifib_slap/Person_storeOpenOrderJournal.xml
+2
-1
master/bt5/vifib_slap/bt/revision
master/bt5/vifib_slap/bt/revision
+1
-1
No files found.
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/Person_storeOpenOrderJournal.xml
View file @
160f277d
...
@@ -106,7 +106,7 @@ def getWorkflowDate(delivery, state):\n
...
@@ -106,7 +106,7 @@ def getWorkflowDate(delivery, state):\n
for item in workflow_item_list:\n
for item in workflow_item_list:\n
if item.get(\'simulation_state\') == state:\n
if item.get(\'simulation_state\') == state:\n
return item.get(\'time\')\n
return item.get(\'time\')\n
r
eturn None
\n
r
aise ValueError(\'Delivery %s has no state %s\' % (delivery.getPath(), state))
\n
\n
\n
for setup_line in catalog(\n
for setup_line in catalog(\n
portal_type=\'Sale Packing List Line\',\n
portal_type=\'Sale Packing List Line\',\n
...
@@ -114,6 +114,7 @@ for setup_line in catalog(\n
...
@@ -114,6 +114,7 @@ for setup_line in catalog(\n
simulation_state=[\'stopped\', \'delivered\'],\n
simulation_state=[\'stopped\', \'delivered\'],\n
**movement_kw):\n
**movement_kw):\n
real_setup_line = catalog.getResultValue(portal_type=\'Sale Packing List Line\', simulation_state=[\'stopped\', \'delivered\'],\n
real_setup_line = catalog.getResultValue(portal_type=\'Sale Packing List Line\', simulation_state=[\'stopped\', \'delivered\'],\n
default_resource_uid=setup_resource_uid,\n
default_aggregate_uid=setup_line.getAggregateValue(portal_type=\'Hosting Subscription\').getPredecessorValue().getUid())\n
default_aggregate_uid=setup_line.getAggregateValue(portal_type=\'Hosting Subscription\').getPredecessorValue().getUid())\n
# start date shall be stopped state reach\n
# start date shall be stopped state reach\n
start_date = getWorkflowDate(real_setup_line.getParentValue(), \'stopped\')\n
start_date = getWorkflowDate(real_setup_line.getParentValue(), \'stopped\')\n
...
...
master/bt5/vifib_slap/bt/revision
View file @
160f277d
643
644
\ 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