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
Xiaowu Zhang
slapos.core
Commits
cd85f4ed
Commit
cd85f4ed
authored
Mar 05, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix image related to the open order line
parent
41752f81
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
21 deletions
+10
-21
master/bt5/vifib_open_trade/SkinTemplateItem/portal_skins/vifib_open_trade/OpenSaleOrderLine_getDefaultImageAbsoluteUrl.xml
...en_trade/OpenSaleOrderLine_getDefaultImageAbsoluteUrl.xml
+9
-20
master/bt5/vifib_open_trade/bt/revision
master/bt5/vifib_open_trade/bt/revision
+1
-1
No files found.
master/bt5/vifib_open_trade/SkinTemplateItem/portal_skins/vifib_open_trade/OpenSaleOrderLine_getDefaultImageAbsoluteUrl.xml
View file @
cd85f4ed
...
@@ -51,28 +51,17 @@
...
@@ -51,28 +51,17 @@
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
subscription_item = context.getAggregateValue(portal_type="Hosting Subscription")\n
<value>
<string>
subscription_item = context.getAggregateValue(portal_type="Hosting Subscription")\n
portal = context.getPortalObject()\n
\n
\n
line_list = context.portal_catalog(\n
release = portal.portal_catalog.getResultValue(\n
portal_type="Sale Packing List Line",\n
portal_type="Software Release",\n
resource_relative_url=context.portal_preferences.getPreferredInstanceSetupResource(),\n
url_string=subscription_item.getRootSoftwareReleaseUrl(),\n
default_aggregate_uid=subscription_item.getUid())\n
)\n
if release is not None:\n
software_product = release.getAggregateValue()\n
return \'%s/index_html\' % software_product.getDefaultImageAbsoluteUrl()\n
\n
\n
line_list = [x.getObject() for x in line_list]\n
return \'\'\n
\n
# Add also sale order under validation\n
line_list.extend([x.getObject() for x in context.portal_catalog(\n
portal_type="Sale Order Line",\n
resource_relative_url=context.portal_preferences.getPreferredInstanceSetupResource(),\n
default_aggregate_uid=subscription_item.getUid())])\n
\n
for delivery_line in line_list:\n
software_instance = delivery_line.getAggregateValue(portal_type=\'Software Instance\')\n
if software_instance is not None:\n
if software_instance.getPredecessorRelatedValue() is None:\n
software_release = delivery_line.getAggregateValue(portal_type=\'Software Release\')\n
if software_release is not None:\n
software_product = software_release.getAggregateValue()\n
return \'%s/index_html\' % software_product.getDefaultImageAbsoluteUrl()\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
...
master/bt5/vifib_open_trade/bt/revision
View file @
cd85f4ed
167
168
\ 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