aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2012-08-29 23:55:37 -0400
committerW. Trevor King <wking@tremily.us>2012-08-29 23:55:37 -0400
commit0336db8d4052a319f1d959a33fc847814551e3f8 (patch)
tree706d9f132199c3feb1621a2e324215ae9a2b535a /libbe/storage
parent4db1a045a0606bead191a563abc54dfa8352efe0 (diff)
downloadbugseverywhere-0336db8d4052a319f1d959a33fc847814551e3f8.tar.gz
command:serve-storage: rename `be serve` -> `be serve-storage`.
This will help avoid confusion between be serve-storage and be serve-commands
Diffstat (limited to 'libbe/storage')
-rw-r--r--libbe/storage/http.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/libbe/storage/http.py b/libbe/storage/http.py
index 5fe0dfc..b1a213f 100644
--- a/libbe/storage/http.py
+++ b/libbe/storage/http.py
@@ -21,7 +21,7 @@ implementation.
See Also
--------
-:mod:`libbe.command.serve` : the associated server
+:mod:`libbe.command.serve_storage` : the associated server
"""
from __future__ import absolute_import
@@ -44,7 +44,7 @@ if TESTING == True:
import unittest
import libbe.bugdir
- import libbe.command.serve
+ import libbe.command.serve_storage
import libbe.util.http
import libbe.util.wsgi
@@ -265,12 +265,12 @@ if TESTING == True:
name = 'TestingHTTP'
def __init__(self, repo, *args, **kwargs):
self._storage_backend = base.VersionedStorage(repo)
- app = libbe.command.serve.ServerApp(
+ app = libbe.command.serve_storage.ServerApp(
storage=self._storage_backend)
self.app = libbe.util.wsgi.BEExceptionApp(app=app)
HTTP.__init__(self, repo='http://localhost:8000/', *args, **kwargs)
self.intitialized = False
- # duplicated from libbe.command.serve.WSGITestCase
+ # duplicated from libbe.util.wsgi.WSGITestCase
self.default_environ = {
'REQUEST_METHOD': 'GET', # 'POST', 'HEAD'
'REMOTE_ADDR': '192.168.0.123',
@@ -292,7 +292,7 @@ if TESTING == True:
}
def getURL(self, app, path='/', method='GET', data=None,
scheme='http', environ={}):
- # duplicated from libbe.command.serve.WSGITestCase
+ # duplicated from libbe.util.wsgi.WSGITestCase
env = copy.copy(self.default_environ)
env['PATH_INFO'] = path
env['REQUEST_METHOD'] = method