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
Xavier Thompson
slapos.core
Commits
abbfffc9
Commit
abbfffc9
authored
May 28, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify.
parent
cf74f927
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
30 deletions
+3
-30
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getCurrentHostingSubscriptionList.xml
..._hosting/WebSection_getCurrentHostingSubscriptionList.xml
+2
-29
master/bt5/vifib_web/bt/revision
master/bt5/vifib_web/bt/revision
+1
-1
No files found.
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_getCurrentHostingSubscriptionList.xml
View file @
abbfffc9
...
...
@@ -53,42 +53,15 @@
<value>
<string>
from Products.ZSQLCatalog.SQLCatalog import NegatedQuery, Query\n
\n
portal = context.getPortalObject()\n
person_uid = portal.ERP5Site_getPropertyFromAuthenticatedMemberPersonValue(\'uid\')\n
person_reference = portal.ERP5Site_getPropertyFromAuthenticatedMemberPersonValue(\'reference\')\n
\n
setup_service = portal.restrictedTraverse(portal.portal_preferences.getPreferredInstanceSetupResource())\n
\n
# XXX Owner column should not be used to fetch the list!\n
# Data model of hosting subscription should be fixed to allow direct query\n
hosting_subscription_list =
portal.portal_catalog(\n
return
portal.portal_catalog(\n
portal_type="Hosting Subscription",\n
owner=person_reference,\n
validation_state=\'validated\'\n
)\n
\n
# Only return ongoing hosting subscription\n
return [x for x in hosting_subscription_list if \\\n
(len(portal.portal_catalog(\n
portal_type="Sale Packing List Line",\n
simulation_state=NegatedQuery(Query(simulation_state="delivered")),\n
default_resource_uid=setup_service.getUid(),\n
default_aggregate_uid=x.getUid(),\n
limit=1,\n
)) == 1) or \\\n
(\n
(len(portal.portal_catalog(\n
portal_type="Sale Packing List Line",\n
default_resource_uid=setup_service.getUid(),\n
default_aggregate_uid=x.getUid(),\n
limit=1,\n
)) == 0) and \\\n
(len(portal.portal_catalog(\n
portal_type="Sale Order Line",\n
default_resource_uid=setup_service.getUid(),\n
simulation_state="cancelled",\n
default_aggregate_uid=x.getUid(),\n
limit=1,\n
)) == 0)\n
)]\n
</string>
</value>
</item>
<item>
...
...
master/bt5/vifib_web/bt/revision
View file @
abbfffc9
378
\ No newline at end of file
379
\ 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