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
Ophélie Gagnard
slapos.core
Commits
cb1e6dd7
Commit
cb1e6dd7
authored
Jan 15, 2019
by
Guillaume Hervier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: Computer_viewCurrentUsage: Make column links proper and compatible with RenderJS UI.
parent
2b311891
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
83 additions
and
146 deletions
+83
-146
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getHostingSubscriptionUrlString.py
...loud/ComputerPartition_getHostingSubscriptionUrlString.py
+22
-7
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getHostingSubscriptionUrlString.xml
...oud/ComputerPartition_getHostingSubscriptionUrlString.xml
+1
-1
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getInstanceUrlString.py
...ns/slapos_cloud/ComputerPartition_getInstanceUrlString.py
+21
-5
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getInstanceUrlString.xml
...s/slapos_cloud/ComputerPartition_getInstanceUrlString.xml
+1
-1
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getOwnerAsHtml.py
...al_skins/slapos_cloud/ComputerPartition_getOwnerAsHtml.py
+0
-6
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getOwnerName.py
...rtal_skins/slapos_cloud/ComputerPartition_getOwnerName.py
+7
-0
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getOwnerName.xml
...tal_skins/slapos_cloud/ComputerPartition_getOwnerName.xml
+1
-1
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getOwnerUrl.py
...ortal_skins/slapos_cloud/ComputerPartition_getOwnerUrl.py
+23
-0
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getOwnerUrl.xml
...rtal_skins/slapos_cloud/ComputerPartition_getOwnerUrl.xml
+2
-2
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getUsageReportUrl.py
...skins/slapos_cloud/ComputerPartition_getUsageReportUrl.py
+0
-1
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Computer_viewCurrentUsage.xml
...m/portal_skins/slapos_cloud/Computer_viewCurrentUsage.xml
+0
-1
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Computer_viewCurrentUsage/my_busy_computer_partition_list.xml
...uter_viewCurrentUsage/my_busy_computer_partition_list.xml
+5
-5
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Computer_viewCurrentUsage/my_busy_computer_partition_list_owner_title.xml
...rentUsage/my_busy_computer_partition_list_owner_title.xml
+0
-116
No files found.
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getHostingSubscriptionUrlString.py
View file @
cb1e6dd7
partition
=
context
if
brain
is
None
:
brain
=
context
software_instance_list
=
partition
.
getAggregateRelatedValueList
(
portal_type
=
[
"Software Instance"
])
for
si
in
software_instance_list
:
obj
=
si
.
getObject
()
hosting_url
=
obj
.
getSpecialise
()
if
hosting_url
:
return
"%s?editable_mode:int=1"
%
hosting_url
software_instance
=
brain
.
getAggregateRelatedValue
(
portal_type
=
[
"Software Instance"
])
if
software_instance
is
None
:
return
None
hosting_subscription
=
software_instance
.
getSpecialiseValue
()
if
url_dict
:
# If RenderJS UI
jio_key
=
hosting_subscription
.
getRelativeUrl
()
return
{
'command'
:
'push_history'
,
'view_kw'
:
{
'view'
:
'view'
,
'jio_key'
:
jio_key
,
},
'options'
:
{
'jio_key'
:
jio_key
},
}
else
:
return
hosting_subscription
.
absolute_url
()
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getHostingSubscriptionUrlString.xml
View file @
cb1e6dd7
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
**kw
</string>
</value>
<value>
<string>
url_dict=False, brain=None, selection=None, selection_name=None,
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getInstanceUrlString.py
View file @
cb1e6dd7
partition
=
context
if
brain
is
None
:
brain
=
context
software_instance_list
=
partition
.
getAggregateRelatedValueList
(
portal_type
=
[
"Software Instance"
])
for
si
in
software_instance_list
:
obj
=
si
.
getObject
()
return
"%s?editable_mode:int=1"
%
obj
.
getRelativeUrl
()
software_instance
=
brain
.
getAggregateRelatedValue
(
portal_type
=
[
"Software Instance"
])
if
software_instance
is
None
:
return
None
if
url_dict
:
# If RenderJS UI
jio_key
=
software_instance
.
getRelativeUrl
()
return
{
'command'
:
'push_history'
,
'view_kw'
:
{
'view'
:
'view'
,
'jio_key'
:
jio_key
,
'editable'
:
'true'
,
},
'options'
:
{
'jio_key'
:
jio_key
},
}
else
:
return
software_instance
.
absolute_url
()
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getInstanceUrlString.xml
View file @
cb1e6dd7
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
**kw
</string>
</value>
<value>
<string>
url_dict=False, brain=None, selection=None, selection_name=None,
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getOwnerAsHtml.py
deleted
100644 → 0
View file @
2b311891
partition
=
context
si
=
partition
.
getAggregateRelatedValue
(
portal_type
=
[
"Software Instance"
,
"Slave Instance"
])
if
si
:
person
=
si
.
getSpecialiseValue
().
getDestinationSectionValue
()
return
'<a href="%s?editable_mode:int=1">%s</a>'
%
(
person
.
getRelativeUrl
(),
person
.
getTitle
())
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getOwnerName.py
0 → 100644
View file @
cb1e6dd7
instance
=
context
.
getAggregateRelatedValue
(
portal_type
=
[
"Software Instance"
])
if
instance
is
None
:
return
None
owner
=
instance
.
getSpecialiseValue
().
getDestinationSectionValue
()
return
owner
.
getTitle
()
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getOwner
AsHtml
.xml
→
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getOwner
Name
.xml
View file @
cb1e6dd7
...
...
@@ -54,7 +54,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ComputerPartition_getOwner
AsHtml
</string>
</value>
<value>
<string>
ComputerPartition_getOwner
Name
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getOwnerUrl.py
0 → 100644
View file @
cb1e6dd7
if
brain
is
None
:
brain
=
context
instance
=
brain
.
getAggregateRelatedValue
(
portal_type
=
[
"Software Instance"
])
if
instance
is
None
:
return
None
owner
=
instance
.
getSpecialiseValue
().
getDestinationSectionValue
()
if
url_dict
:
# If RenderJS UI
jio_key
=
owner
.
getRelativeUrl
()
return
{
'command'
:
'push_history'
,
'view_kw'
:
{
'view'
:
'view'
,
'jio_key'
:
jio_key
,
},
'options'
:
{
'jio_key'
:
jio_key
},
}
else
:
return
owner
.
absolute_url
()
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_get
UsageReport
Url.xml
→
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_get
Owner
Url.xml
View file @
cb1e6dd7
...
...
@@ -50,11 +50,11 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
**kw
</string>
</value>
<value>
<string>
url_dict=False, brain=None, selection=None, selection_name=None,
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ComputerPartition_get
UsageReport
Url
</string>
</value>
<value>
<string>
ComputerPartition_get
Owner
Url
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputerPartition_getUsageReportUrl.py
deleted
100644 → 0
View file @
2b311891
return
context
.
absolute_url
()
+
'/Item_viewTrackingList?current:int=0'
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Computer_viewCurrentUsage.xml
View file @
cb1e6dd7
...
...
@@ -95,7 +95,6 @@
<string>
listbox_usage
</string>
<string>
my_busy_computer_partition_list_creation_date
</string>
<string>
my_busy_computer_partition_list_status
</string>
<string>
my_busy_computer_partition_list_owner_title
</string>
<string>
listbox_installation_status
</string>
<string>
my_busy_computer_partition_list_hosting_subscription_title
</string>
<string>
my_busy_computer_partition_list_instance_title
</string>
...
...
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Computer_viewCurrentUsage/my_busy_computer_partition_list.xml
View file @
cb1e6dd7
...
...
@@ -414,7 +414,7 @@
<string>
Image
</string>
</tuple>
<tuple>
<string>
owner_titl
e
</string>
<string>
ComputerPartition_getOwnerNam
e
</string>
<string>
Owner
</string>
</tuple>
<tuple>
...
...
@@ -641,10 +641,6 @@
<key>
<string>
url_columns
</string>
</key>
<value>
<list>
<tuple>
<string>
reference
</string>
<string>
ComputerPartition_getUsageReportUrl
</string>
</tuple>
<tuple>
<string>
instance_title
</string>
<string>
ComputerPartition_getInstanceUrlString
</string>
...
...
@@ -661,6 +657,10 @@
<string>
image
</string>
<string>
ComputerPartition_getInstanceUrlString
</string>
</tuple>
<tuple>
<string>
ComputerPartition_getOwnerName
</string>
<string>
ComputerPartition_getOwnerUrl
</string>
</tuple>
<tuple>
<string>
ComputerPartition_getLastestContactedDate
</string>
<string>
ComputerPartition_getInstanceUrlString
</string>
...
...
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Computer_viewCurrentUsage/my_busy_computer_partition_list_owner_title.xml
deleted
100644 → 0
View file @
2b311891
<?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>
title
</string>
<string>
default
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_busy_computer_partition_list_owner_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>
default
</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>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_editor_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</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>
Instance Owner
</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>
cell/ComputerPartition_getOwnerAsHtml
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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