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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eric Zheng
slapos.toolbox
Commits
356e6558
Commit
356e6558
authored
Oct 11, 2012
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added vim header for tabs
parent
8af89be7
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
2 deletions
+11
-2
slapos/runner/__init__.py
slapos/runner/__init__.py
+3
-0
slapos/runner/fileBrowser.py
slapos/runner/fileBrowser.py
+1
-0
slapos/runner/gittools.py
slapos/runner/gittools.py
+2
-1
slapos/runner/runnertest.py
slapos/runner/runnertest.py
+3
-1
slapos/runner/utils.py
slapos/runner/utils.py
+1
-0
slapos/runner/views.py
slapos/runner/views.py
+1
-0
No files found.
slapos/runner/__init__.py
View file @
356e6558
# -*- coding: utf-8 -*-
# vim: set et sts=2:
from
optparse
import
OptionParser
,
Option
from
optparse
import
OptionParser
,
Option
import
ConfigParser
import
ConfigParser
import
logging
import
logging
...
...
slapos/runner/fileBrowser.py
View file @
356e6558
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# vim: set et sts=2:
import
os
import
os
import
urllib
import
urllib
...
...
slapos/runner/gittools.py
View file @
356e6558
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# vim: set et sts=2:
import
slapos.slap
import
slapos.slap
import
time
import
time
...
@@ -179,4 +180,4 @@ def gitPull(project):
...
@@ -179,4 +180,4 @@ def gitPull(project):
def
safeResult
(
result
):
def
safeResult
(
result
):
"""Parse string and remove credential of the user"""
"""Parse string and remove credential of the user"""
regex
=
re
.
compile
(
"(https:
\
/
\
/)([
\
w
\
d
\
._-]+:[
\
w
\
d
\
._-]+)
\
@([
\
S]+
\
s)
"
, re.VERBOSE)
regex
=
re
.
compile
(
"(https:
\
/
\
/)([
\
w
\
d
\
._-]+:[
\
w
\
d
\
._-]+)
\
@([
\
S]+
\
s)
"
, re.VERBOSE)
return regex.sub(r'
\
1
\
3
', result)
return regex.sub(r'
\
1
\
3
', result)
\ No newline at end of file
slapos/runner/runnertest.py
View file @
356e6558
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# vim: set et sts=2:
import
os
import
os
import
sys
import
sys
import
views
import
views
...
@@ -290,4 +292,4 @@ def main():
...
@@ -290,4 +292,4 @@ def main():
unittest
.
main
(
module
=
SlaprunnerTestCase
,
argv
=
argv
)
unittest
.
main
(
module
=
SlaprunnerTestCase
,
argv
=
argv
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
main
()
main
()
\ No newline at end of file
slapos/runner/utils.py
View file @
356e6558
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# vim: set et sts=2:
import
slapos.slap
import
slapos.slap
import
time
import
time
...
...
slapos/runner/views.py
View file @
356e6558
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# vim: set et sts=2:
from
flask
import
Flask
,
request
,
redirect
,
url_for
,
\
from
flask
import
Flask
,
request
,
redirect
,
url_for
,
\
render_template
,
g
,
flash
,
jsonify
,
session
,
abort
,
send_file
render_template
,
g
,
flash
,
jsonify
,
session
,
abort
,
send_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