Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
francois
slapos
Commits
e6d705cb
Commit
e6d705cb
authored
Sep 27, 2011
by
Antoine Catton
Committed by
Cédric de Saint Martin
Oct 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return a webdavs:// url instead of https:// using
setConnectionUrl method.
parent
299f8da0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
slapos/recipe/davstorage/__init__.py
slapos/recipe/davstorage/__init__.py
+6
-7
No files found.
slapos/recipe/davstorage/__init__.py
View file @
e6d705cb
...
...
@@ -41,13 +41,12 @@ class Recipe(BaseSlapRecipe):
self
.
path_list
=
[]
self
.
requirements
,
self
.
ws
=
self
.
egg
.
working_set
()
document_root
=
self
.
createDataDirectory
(
'www'
)
self
.
apache_config
=
self
.
installApache
(
document_root
)
self
.
setConnectionDict
(
dict
(
url
=
'https://[%s]:%s/'
%
(
self
.
apache_config
[
'ip'
],
self
.
apache_config
[
'port'
]),
user
=
self
.
apache_config
[
'user'
],
password
=
self
.
apache_config
[
'password'
]),
)
apache_config
=
self
.
installApache
(
document_root
)
self
.
setConnectionUrl
(
scheme
=
'webdavs'
,
host
=
apache_config
[
'ip'
],
port
=
apache_config
[
'port'
],
auth
=
(
apache_config
[
'user'
],
apache_config
[
'password'
]))
return
self
.
path_list
def
installApache
(
self
,
document_root
,
ip
=
None
,
port
=
None
):
...
...
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