I'd say 'yes' based on this:
import framework
from google.appengine.ext.webapp.util import run_wsgi_app
application = framework.WSGIRouter()
application.connect('/', framework.WSGILazyLoader('home.home_handler'))
Note the "framework.WSGILazyLoader" part.
Robert
On Sat, Dec 4, 2010 at 22:26, NealWalters <[email protected]> wrote:
> Was I supposed to save this as framework.py?
>
> class WSGILazyLoader(object):
> def __init__(self, fullname):
> self.modulename, self.objname = fullname.rpartition('.')
> self.obj = None
>
> def __call__(self, environ, start_response):
> if not self.obj:
> __import__(self.modulename, globals(), locals())
> module = sys.modules[self.modulename]
> self.obj = module.__dict__[self.objname]
> return self.obj(environ, start_response)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.