r8-forks / webapp-improved

Automatically exported from code.google.com/p/webapp-improved
Other
0 stars 0 forks source link

Circular import between webapp2 and google.apphosting.ext.webapp on App Engine Python 2.7 runtime #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please provide any additional information below.

1. webapp2 executes this line on import:
    from google.appengine.ext.webapp import util as _webapp_util
2. this causes webapp/__init__.py to be imported which executes this line:
    from webapp2 import *

Since webapp2 has not defined Request, Response, etc. at the time of the 
import, the google.appengine.ext.webapp namespace will be unusable. 

Original issue reported on code.google.com by bquin...@google.com on 26 Aug 2011 at 1:58

GoogleCodeExporter commented 9 years ago
Attached is a patch that fixes the issue but an equivalent fix would be to 
isolate the import in the WSGIApplication.run method.

Original comment by bquin...@google.com on 26 Aug 2011 at 3:27

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision a2bdc641668c.

Original comment by rodrigo.moraes on 26 Aug 2011 at 5:33