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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
4c267199
Commit
4c267199
authored
Aug 22, 2024
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: move to panel
parent
87061abf
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
0 additions
and
427 deletions
+0
-427
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputePartition_getInstanceTreeUrlString.py
...slapos_cloud/ComputePartition_getInstanceTreeUrlString.py
+0
-23
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputePartition_getInstanceTreeUrlString.xml
...lapos_cloud/ComputePartition_getInstanceTreeUrlString.xml
+0
-62
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputePartition_getInstanceUrlString.py
...ins/slapos_cloud/ComputePartition_getInstanceUrlString.py
+0
-22
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputePartition_getInstanceUrlString.xml
...ns/slapos_cloud/ComputePartition_getInstanceUrlString.xml
+0
-62
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputePartition_getOwnerUrl.py
...portal_skins/slapos_cloud/ComputePartition_getOwnerUrl.py
+0
-23
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputePartition_getOwnerUrl.xml
...ortal_skins/slapos_cloud/ComputePartition_getOwnerUrl.xml
+0
-62
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/SoftwareInstance_getComputeNodeUrl.py
..._skins/slapos_cloud/SoftwareInstance_getComputeNodeUrl.py
+0
-23
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/SoftwareInstance_getComputeNodeUrl.xml
...skins/slapos_cloud/SoftwareInstance_getComputeNodeUrl.xml
+0
-62
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/SoftwareInstance_getPartitionUrl.py
...al_skins/slapos_cloud/SoftwareInstance_getPartitionUrl.py
+0
-26
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/SoftwareInstance_getPartitionUrl.xml
...l_skins/slapos_cloud/SoftwareInstance_getPartitionUrl.xml
+0
-62
No files found.
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputePartition_getInstanceTreeUrlString.py
deleted
100644 → 0
View file @
87061abf
if
brain
is
None
:
brain
=
context
software_instance
=
brain
.
getAggregateRelatedValue
(
portal_type
=
[
"Software Instance"
])
if
software_instance
is
None
:
return
None
instance_tree
=
software_instance
.
getSpecialiseValue
()
if
url_dict
:
# If RenderJS UI
jio_key
=
instance_tree
.
getRelativeUrl
()
return
{
'command'
:
'push_history'
,
'view_kw'
:
{
'view'
:
'slapos_panel_view'
,
'jio_key'
:
jio_key
,
},
'options'
:
{
'jio_key'
:
jio_key
},
}
else
:
return
instance_tree
.
absolute_url
()
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputePartition_getInstanceTreeUrlString.xml
deleted
100644 → 0
View file @
87061abf
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</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>
_params
</string>
</key>
<value>
<string>
url_dict=False, brain=None, selection=None, selection_name=None, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ComputePartition_getInstanceTreeUrlString
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputePartition_getInstanceUrlString.py
deleted
100644 → 0
View file @
87061abf
if
brain
is
None
:
brain
=
context
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'
:
'slapos_panel_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/ComputePartition_getInstanceUrlString.xml
deleted
100644 → 0
View file @
87061abf
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</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>
_params
</string>
</key>
<value>
<string>
url_dict=False, brain=None, selection=None, selection_name=None, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ComputePartition_getInstanceUrlString
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputePartition_getOwnerUrl.py
deleted
100644 → 0
View file @
87061abf
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'
:
'slapos_panel_view'
,
'jio_key'
:
jio_key
,
},
'options'
:
{
'jio_key'
:
jio_key
},
}
else
:
return
owner
.
absolute_url
()
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/ComputePartition_getOwnerUrl.xml
deleted
100644 → 0
View file @
87061abf
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</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>
_params
</string>
</key>
<value>
<string>
url_dict=False, brain=None, selection=None, selection_name=None, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
ComputePartition_getOwnerUrl
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/SoftwareInstance_getComputeNodeUrl.py
deleted
100644 → 0
View file @
87061abf
if
brain
is
None
:
brain
=
context
partition
=
brain
.
getAggregateValue
()
if
partition
is
None
:
return
None
compute_node
=
partition
.
getParent
()
if
url_dict
:
# If RenderJS UI
jio_key
=
compute_node
.
getRelativeUrl
()
return
{
'command'
:
'push_history'
,
'view_kw'
:
{
'view'
:
'slapos_panel_view'
,
'jio_key'
:
jio_key
,
},
'options'
:
{
'jio_key'
:
jio_key
},
}
else
:
return
compute_node
.
absolute_url
()
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/SoftwareInstance_getComputeNodeUrl.xml
deleted
100644 → 0
View file @
87061abf
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</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>
_params
</string>
</key>
<value>
<string>
url_dict=False, brain=None, selection=None, selection_name=None, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SoftwareInstance_getComputeNodeUrl
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/SoftwareInstance_getPartitionUrl.py
deleted
100644 → 0
View file @
87061abf
# Script to generate URL for compute_node partiton of Software Instances
# both for XHTML UI as well as renderJS UI
if
brain
is
None
:
brain
=
context
# 'brain' in this case is the Software Instance, hence trying to get
# the partition as it it related to the Software Instance with 'aggregate'
# category, hence, this will get us the relative URL of the aggregate
partition
=
brain
.
getAggregateValue
()
if
partition
is
None
:
return
None
if
url_dict
:
# if RenderJS UI
jio_key
=
partition
.
getRelativeUrl
()
return
{
'command'
:
'push_history'
,
'view_kw'
:
{
'view'
:
'slapos_panel_view'
,
'jio_key'
:
jio_key
,
},
'options'
:
{
'jio_key'
:
jio_key
},
}
else
:
return
partition
.
absolute_url
()
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/SoftwareInstance_getPartitionUrl.xml
deleted
100644 → 0
View file @
87061abf
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</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>
_params
</string>
</key>
<value>
<string>
url_dict=False, brain=None, selection=None, selection_name=None, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SoftwareInstance_getPartitionUrl
</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