Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
104
Merge Requests
104
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
aabb083d
Commit
aabb083d
authored
Feb 23, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set arrow on damaged SPLs.
parent
a0b4d1ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
89 additions
and
1 deletion
+89
-1
master/bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py
...bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py
+1
-0
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/SalePackingList_setArrow.xml
.../portal_skins/vifib_upgrader/SalePackingList_setArrow.xml
+87
-0
master/bt5/vifib_upgrader/bt/revision
master/bt5/vifib_upgrader/bt/revision
+1
-1
No files found.
master/bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py
View file @
aabb083d
...
...
@@ -8,6 +8,7 @@ def DeliveryLineSetZeroPriceAndOrUpdateAppliedRule(self):
specialise
=
self
.
getParentValue
().
getSpecialise
()
if
common_specialise
!=
specialise
:
self
.
getParentValue
().
setSpecialise
(
common_specialise
)
self
.
SalePackingList_setArrow
()
self
.
setPrice
(
0.0
)
if
self
.
getSimulationState
()
==
'cancelled'
:
# force no simulation
...
...
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/SalePackingList_setArrow.xml
0 → 100644
View file @
aabb083d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
source, destination, source_section, destination_section = context.getSource(), context.getDestination(), context.getSourceSection(), context.getDestinationSection()\n
\n
if not(source is None and destination is None and source_section is None and destination_section is None):\n
# nothing to do\n
return\n
\n
movement_list = context.getMovementList()\n
assert len(movement_list) == 1\n
software_instance = movement_list[0].getAggregateValue(portal_type=\'Software Instance\')\n
\n
sale_order_line = software_instance.getAggregateRelatedValue(portal_type=\'Sale Order Line\')\n
if sale_order_line is None:\n
hosting_subscription = context.getPortalObject().portal_catalog.getResultValue(uid=software_instance.SoftwareInstance_getRootHostingSubscriptionUid())\n
sale_order_line = hosting_subscription.getAggregateRelatedValue(portal_type=\'Sale Order Line\')\n
\n
sale_order = sale_order_line.getParentValue()\n
\n
context.setSource(sale_order.getSource())\n
context.setDestination(sale_order.getDestination())\n
context.setSourceSection(sale_order.getSourceSection())\n
context.setDestinationSection(sale_order.getDestinationSection())\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SalePackingList_setArrow
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_upgrader/bt/revision
View file @
aabb083d
45
\ No newline at end of file
46
\ 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