Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
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
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
e8187176
Commit
e8187176
authored
Aug 19, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resuse buildout provided handler.
parent
db668953
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
src/zc/buildout/testing.py
src/zc/buildout/testing.py
+2
-7
No files found.
src/zc/buildout/testing.py
View file @
e8187176
...
@@ -553,14 +553,9 @@ class Handler(BaseHTTPServer.BaseHTTPRequestHandler):
...
@@ -553,14 +553,9 @@ class Handler(BaseHTTPServer.BaseHTTPRequestHandler):
if self.__server.__log:
if self.__server.__log:
print '%s %s %s' % (self.command, code, self.path)
print '%s %s %s' % (self.command, code, self.path)
class NCHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
class NCHandler(Handler):
def do_GET(self):
if '__stop__' in self.path:
raise SystemExit
SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self)
def do_PUT(self):
def do_PUT(self):
path =
self.translate_path(self.path
)
path =
os.path.abspath(os.path.join(self.tree, *self.path.split('/'))
)
d = os.path.dirname(path)
d = os.path.dirname(path)
if not os.path.exists(d):
if not os.path.exists(d):
os.makedirs(d)
os.makedirs(d)
...
...
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