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
Paul Graydon
slapos.core
Commits
0b03cb0a
Commit
0b03cb0a
authored
Sep 28, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_web: Replace source_project by aggregate when associate computers to support requests.
parent
737028ad
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
223 additions
and
151 deletions
+223
-151
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/Base_getOpenRelatedTicketList.py
...rtal_skins/vifib_hosting/Base_getOpenRelatedTicketList.py
+1
-1
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/Computer_viewAsWeb/ticket_listbox.xml
...skins/vifib_hosting/Computer_viewAsWeb/ticket_listbox.xml
+5
-1
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/HostingSubscription_viewAsWeb/ticket_listbox.xml
..._hosting/HostingSubscription_viewAsWeb/ticket_listbox.xml
+1
-1
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/Ticket_viewAsWeb.xml
...plateItem/portal_skins/vifib_hosting/Ticket_viewAsWeb.xml
+1
-0
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/Ticket_viewAsWeb/my_aggregate_title.xml
...ins/vifib_hosting/Ticket_viewAsWeb/my_aggregate_title.xml
+168
-0
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/Ticket_viewAsWeb/my_title.xml
.../portal_skins/vifib_hosting/Ticket_viewAsWeb/my_title.xml
+46
-147
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_registerNewTicket.py
...ortal_skins/vifib_hosting/WebSection_registerNewTicket.py
+1
-1
No files found.
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/Base_getOpenRelatedTicketList.py
View file @
0b03cb0a
...
...
@@ -8,7 +8,7 @@ portal = context.getPortalObject()
query
=
ComplexQuery
(
ComplexQuery
(
SimpleQuery
(
portal_type
=
"Support Request"
),
SimpleQuery
(
default_
source_project
_uid
=
context
.
getUid
()),
SimpleQuery
(
default_
aggregate
_uid
=
context
.
getUid
()),
logical_operator
=
'and'
),
ComplexQuery
(
SimpleQuery
(
portal_type
=
"Upgrade Decision Line"
),
...
...
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/Computer_viewAsWeb/ticket_listbox.xml
View file @
0b03cb0a
...
...
@@ -67,6 +67,10 @@
<key>
<string>
columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
css_class
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default_params
</string>
</key>
<value>
...
...
@@ -272,7 +276,7 @@
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: [(\'
source_project
_uid\', here.getUid())]
</string>
</value>
<value>
<string>
python: [(\'
aggregate
_uid\', here.getUid())]
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/HostingSubscription_viewAsWeb/ticket_listbox.xml
View file @
0b03cb0a
...
...
@@ -258,7 +258,7 @@
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: [(\'
source_project
_uid\', here.getUid())]
</string>
</value>
<value>
<string>
python: [(\'
aggregate
_uid\', here.getUid())]
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/Ticket_viewAsWeb.xml
View file @
0b03cb0a
...
...
@@ -96,6 +96,7 @@
<value>
<list>
<string>
my_title
</string>
<string>
my_aggregate_title
</string>
</list>
</value>
</item>
...
...
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/Ticket_viewAsWeb/my_aggregate_title.xml
0 → 100644
View file @
0b03cb0a
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
editable
</string>
<string>
enabled
</string>
<string>
portal_type
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_aggregate_title
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_relation_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<list>
<tuple>
<string>
Hosting Subscription
</string>
<string>
Hosting Subscription
</string>
</tuple>
<tuple>
<string>
Computer
</string>
<string>
Computer
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Computer
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: context.getAggregate() is not None
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: context.getAggregate(portal_type=["Computer", "Hosting Subscription"]) is not None and (context.getAggregateValue().getPortalType() == "Computer" and "Related Computer" or "Related Hosting Subscription")
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/Ticket_viewAsWeb/my_title.xml
View file @
0b03cb0a
This diff is collapsed.
Click to expand it.
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_registerNewTicket.py
View file @
0b03cb0a
...
...
@@ -9,7 +9,7 @@ support_request = support_request_template.Base_createCloneDocument(batch_mode=1
kw
=
{}
if
context
.
getPortalType
()
in
[
"Hosting Subscription"
,
"Computer"
]:
kw
[
'
source_project
'
]
=
context
.
getRelativeUrl
()
kw
[
'
aggregate
'
]
=
context
.
getRelativeUrl
()
support_request
.
edit
(
title
=
title
,
...
...
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