Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rafael Monnerat
slapos.toolbox
Commits
4c815ff9
Commit
4c815ff9
authored
Mar 09, 2012
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Cloud9 componnent to webrunner
parent
38a788d5
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
29 deletions
+38
-29
slapos/runner/__init__.py
slapos/runner/__init__.py
+3
-2
slapos/runner/static/css/styles.css
slapos/runner/static/css/styles.css
+15
-13
slapos/runner/templates/index.html
slapos/runner/templates/index.html
+1
-1
slapos/runner/templates/instanceInspect.html
slapos/runner/templates/instanceInspect.html
+15
-9
slapos/runner/utils.py
slapos/runner/utils.py
+4
-4
No files found.
slapos/runner/__init__.py
View file @
4c815ff9
...
@@ -58,7 +58,8 @@ class Config:
...
@@ -58,7 +58,8 @@ class Config:
configuration_parser
.
read
(
configuration_file_path
)
configuration_parser
.
read
(
configuration_file_path
)
# Merges the arguments and configuration
# Merges the arguments and configuration
for
section
in
(
"slaprunner"
,
"slapos"
,
"slapproxy"
,
"slapformat"
,
"sshkeys_authority"
,
"gitclient"
):
for
section
in
(
"slaprunner"
,
"slapos"
,
"slapproxy"
,
"slapformat"
,
"sshkeys_authority"
,
"gitclient"
,
"cloud9_IDE"
):
configuration_dict
=
dict
(
configuration_parser
.
items
(
section
))
configuration_dict
=
dict
(
configuration_parser
.
items
(
section
))
for
key
in
configuration_dict
:
for
key
in
configuration_dict
:
if
not
getattr
(
self
,
key
,
None
):
if
not
getattr
(
self
,
key
,
None
):
...
...
slapos/runner/static/css/styles.css
View file @
4c815ff9
...
@@ -313,9 +313,8 @@ input[type="radio"], input[type="checkbox"]{
...
@@ -313,9 +313,8 @@ input[type="radio"], input[type="checkbox"]{
background
:
none
;
background
:
none
;
border
:
1px
solid
#678dad
;
border
:
1px
solid
#678dad
;
padding
:
0
;
padding
:
0
;
height
:
405px
;
color
:
#4c6172
;
color
:
#4c6172
;
margin
:
15px
;
margin
:
15px
59px
15px
59px
;
}
}
#home_box
a
{
#home_box
a
{
...
@@ -351,26 +350,26 @@ input[type="radio"], input[type="checkbox"]{
...
@@ -351,26 +350,26 @@ input[type="radio"], input[type="checkbox"]{
margin
:
0
;
margin
:
0
;
border
:
1px
solid
#CAD4DC
;
border
:
1px
solid
#CAD4DC
;
display
:
block
;
display
:
block
;
padding
:
15px
;
padding
:
30px
0
30px
0
;
height
:
373px
;
}
}
.inner_box
p
{
.inner_box
p
{
font-size
:
13px
;
font-size
:
13px
;
float
:
left
;
float
:
left
;
width
:
4
6
0px
;
width
:
4
5
0px
;
cursor
:
default
;
cursor
:
default
;
text-align
:
justify
;
}
}
.lmenu
{
.lmenu
{
display
:
block
;
display
:
block
;
height
:
80px
;
height
:
80px
;
margin
:
10px
;
margin
:
10px
45px
10px
45px
;
margin-left
:
6
0px
;
padding
:
1
0px
;
padding
:
15px
;
padding
-bottom
:
15px
;
border
:
#678dad
;
border
:
#678dad
;
width
:
5
4
0px
;
width
:
5
3
0px
;
border
:
1px
solid
#678dad
;
border
:
1px
solid
#678dad
;
}
}
...
@@ -382,9 +381,9 @@ input[type="radio"], input[type="checkbox"]{
...
@@ -382,9 +381,9 @@ input[type="radio"], input[type="checkbox"]{
.smenu
{
.smenu
{
display
:
block
;
display
:
block
;
height
:
80px
;
height
:
80px
;
margin
-left
:
60
px
;
margin
:
0
10px
0
45
px
;
margin-right
:
10px
;
padding
:
10px
;
padding
:
15px
;
padding
-bottom
:
15px
;
border
:
#678dad
;
border
:
#678dad
;
width
:
250px
;
width
:
250px
;
border
:
1px
solid
#678dad
;
border
:
1px
solid
#678dad
;
...
@@ -394,7 +393,9 @@ input[type="radio"], input[type="checkbox"]{
...
@@ -394,7 +393,9 @@ input[type="radio"], input[type="checkbox"]{
.sright_menu
{
.sright_menu
{
display
:
block
;
display
:
block
;
height
:
80px
;
height
:
80px
;
padding
:
15px
;
margin
:
0
45px
0
0
;
padding
:
10px
;
padding-bottom
:
15px
;
border
:
#678dad
;
border
:
#678dad
;
width
:
247px
;
width
:
247px
;
border
:
1px
solid
#678dad
;
border
:
1px
solid
#678dad
;
...
@@ -676,3 +677,4 @@ a.lshare img{
...
@@ -676,3 +677,4 @@ a.lshare img{
.popup
a
:hover
{
color
:
#666666
;}
.popup
a
:hover
{
color
:
#666666
;}
.popup
ul
{
margin
:
0
;
padding
:
0
;
list-style
:
none
;}
.popup
ul
{
margin
:
0
;
padding
:
0
;
list-style
:
none
;}
.popup
li
{
border-bottom
:
1px
dashed
#666666
;
padding
:
5px
;
padding-top
:
5px
;}
.popup
li
{
border-bottom
:
1px
dashed
#666666
;
padding
:
5px
;
padding-top
:
5px
;}
textarea
.parameter
{
border
:
solid
1px
#678dad
;
color
:
#666666
;
height
:
110px
;}
slapos/runner/templates/index.html
View file @
4c815ff9
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</div>
</div>
<div
class=
"smenu"
>
<div
class=
"smenu"
>
<h2><a
href=
"{{ url_for('openProject', method='open')}}"
>
Open Software Release
</a></h2>
<h2><a
href=
"{{ url_for('openProject', method='open')}}"
>
Open Software Release
</a></h2>
<p>
If you have cloned your repository,
you can now edit and test
existing Software Release.
</p>
<p>
If you have cloned your repository,
edit and test your
existing Software Release.
</p>
<img
src=
"{{ url_for('static', filename='images/mydocuments.png') }}"
/>
<img
src=
"{{ url_for('static', filename='images/mydocuments.png') }}"
/>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
</div>
</div>
...
...
slapos/runner/templates/instanceInspect.html
View file @
4c815ff9
...
@@ -17,12 +17,18 @@
...
@@ -17,12 +17,18 @@
<h2>
Instance inspection
</h2><br/>
<h2>
Instance inspection
</h2><br/>
<div
id=
"tabContaier"
>
<div
id=
"tabContaier"
>
<ul>
<ul>
<li><a
class=
"active"
href=
"#tab1"
>
Slapgrid Supervisor
</a></li>
<li><a
class=
"active"
href=
"#tab1"
>
Parameters
</a></li>
<li><a
href=
"#tab2"
>
SLAP response
</a></li>
<li><a
href=
"#tab2"
>
Slapgrid Supervisor
</a></li>
<li><a
href=
"#tab3"
>
Partitions Content
</a></li>
<li><a
href=
"#tab3"
>
SLAP response
</a></li>
<li><a
href=
"#tab4"
>
Partitions Content
</a></li>
</ul>
<!-- //Tab buttons -->
</ul>
<!-- //Tab buttons -->
<div
class=
"tabDetails"
>
<div
class=
"tabDetails"
>
<div
id=
"tab1"
class=
"tabContents"
>
<div
id=
"tab1"
class=
"tabContents"
>
<p>
Add your instance parameters here and click on the update button
</p>
<textarea
class=
"parameter"
>
<
?xml version='1.0' encoding='utf-8'?
>
</textarea>
<input
type=
"submit"
name=
"update"
id =
"update"
value=
"Update"
class=
"button"
/>
</div>
<!-- end tab1 -->
<div
id=
"tab2"
class=
"tabContents"
>
<p>
This tab show all process generated by slapgrid for your application. You can click on the process name to display log.
</p>
<p>
This tab show all process generated by slapgrid for your application. You can click on the process name to display log.
</p>
{% if supervisor != []%}
{% if supervisor != []%}
<table
cellpadding=
"0"
cellspacing=
"0"
width=
"100%"
>
<table
cellpadding=
"0"
cellspacing=
"0"
width=
"100%"
>
...
@@ -41,17 +47,17 @@
...
@@ -41,17 +47,17 @@
{% else %}
{% else %}
<h2>
No process to display, please run your instance
</h2>
<h2>
No process to display, please run your instance
</h2>
{%endif%}
{%endif%}
</div>
<!-- end tab
1
-->
</div>
<!-- end tab
2
-->
<div
id=
"tab
2
"
class=
"tabContents"
>
<div
id=
"tab
3
"
class=
"tabContents"
>
<p>
Uses parameters below to run your application
</p>
<p>
Uses parameters below to run your application
</p>
{% for item in slap_status %}
{% for item in slap_status %}
<h2>
{{ item[0 ]}}
</h2>
<h2>
{{ item[0 ]}}
</h2>
<textarea
rows=
5
readonly
>
{{ item[1] }}
</textarea><br>
<textarea
rows=
5
readonly
>
{{ item[1] }}
</textarea><br>
{% endfor %}
{% endfor %}
</div>
<!-- end tab2 -->
<div
id=
"tab3"
class=
"tabContents"
>
<div
id=
"fileTree"
class=
"file_tree_tabs"
></div>
</div>
<!-- end tab3 -->
</div>
<!-- end tab3 -->
<div
id=
"tab4"
class=
"tabContents"
>
<div
id=
"fileTree"
class=
"file_tree_tabs"
></div>
</div>
<!-- end tab4 -->
</div>
</div>
</div>
</div>
<!-- This contains the hidden content for inline calls -->
<!-- This contains the hidden content for inline calls -->
...
...
slapos/runner/utils.py
View file @
4c815ff9
...
@@ -64,10 +64,10 @@ def updateProxy(config):
...
@@ -64,10 +64,10 @@ def updateProxy(config):
'reference'
:
partition_reference
,
'reference'
:
partition_reference
,
'tap'
:
{
'name'
:
partition_reference
},
'tap'
:
{
'name'
:
partition_reference
},
})
})
computer
.
updateConfiguration
(
xml_marshaller
.
dumps
(
slap_config
))
computer
.
updateConfiguration
(
xml_marshaller
.
dumps
(
slap_config
))
slap
.
registerOpenOrder
().
request
(
profile
,
slap
.
registerOpenOrder
().
request
(
profile
,
partition_reference
=
partition_reference
,
partition_reference
=
partition_reference
)
partition_parameter_kw
=
None
,
software_type
=
None
,
filter_kw
=
None
,
state
=
None
,
shared
=
False
)
return
True
return
True
def
readPid
(
file
):
def
readPid
(
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