Dan Colish avatar Dan Colish committed 202b75e

fix up tests, rpc interfaces

Comments (0)

Files changed (3)

lodgeit/controllers/json.py

     :copyright: 2008 by Armin Ronacher.
     :license: BSD
 """
-from lodgeit import local
+
 from lodgeit.lib.webapi import json
-from lodgeit.utils import render_to_response
+from lodgeit.wsgi import local
+from lodgeit.wsgi.utils import render_to_response
 
 
 class JSONController(object):

lodgeit/controllers/xmlrpc.py

     :copyright: 2007-2008 by Armin Ronacher, Georg Brandl, Christopher Grebs.
     :license: BSD
 """
-from lodgeit import local
-from lodgeit.utils import render_to_response
+
 from lodgeit.lib.webapi import xmlrpc
+from lodgeit.wsgi import local
+from lodgeit.wsgi.utils import render_to_response
 
 
 class XMLRPCController(object):

tests/utilities/runner.py

 from nose import with_setup
 
-from lodgeit.application import db, make_app
+
 from lodgeit.models import Paste
+from lodgeit.wsgi.application import db, make_app
 
 foo = make_app(False, True)
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.