Permalink
Browse files

Some setup for a port of tw2.devtools to gearbox.

  • Loading branch information...
ralphbean committed Apr 16, 2013
1 parent 8b5cdcb commit 08fd64a110449f87dab83c09e091fa5c04c95186
Showing with 5 additions and 11 deletions.
  1. +3 −0 setup.py
  2. +0 −1 tw2/core/__init__.py
  3. +2 −10 tw2/core/middleware.py
@@ -101,6 +101,9 @@ def get_description(fname='README.rst'):
[tw2.widgets]
widgets = tw2.core
[paste.app_factory]
dev_server = tw2.core.middleware:make_app
[paste.filter_app_factory]
middleware = tw2.core.middleware:make_middleware
@@ -35,7 +35,6 @@
from .middleware import (
make_middleware,
dev_server,
register_controller,
register_resource,
)
@@ -323,13 +323,5 @@ def make_middleware(app=None, config=None, **kw):
return app
def dev_server(*args, **kwargs):
"""
Deprecated; use tw2.devtools.dev_server insteads.
"""
import tw2.devtools
warnings.warn(
'tw2.core.dev_server is deprecated; ' +
'Use tw2.devtools.dev_server instead.'
)
tw2.devtools.dev_server(*args, **kwargs)
def make_app(config=None, **kw):
return make_middleware(app=None, config=config, **kw)

0 comments on commit 08fd64a

Please sign in to comment.