GoogleCloudPlatform / webapp2

webapp2 is a framework for Google App Engine
https://webapp2.readthedocs.org
Other
141 stars 63 forks source link

from ndb ==> from google.appengine.ext.ndb #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
from ndb ==> from google.appengine.ext.ndb

File 
"/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.3/webapp2_ex
tras/appengine/auth/models.py", line 13, in <module>
    from ndb import model
ImportError: No module named ndb

Original issue reported on code.google.com by service....@gmail.com on 24 Dec 2011 at 2:07

GoogleCodeExporter commented 8 years ago
Looks like this was fixed incorrectly: 
http://code.google.com/p/webapp-improved/source/diff?spec=svnff66c960a50f0f97f75
603afea064877ff754d6d&r=5ce0fa6464bab4c828b63ea05399c73f98a62be0&format=side&pat
h=/webapp2_extras/appengine/sessions_ndb.py&old_path=/webapp2_extras/appengine/s
essions_ndb.py&old=1047f3b8137b6e08e529dc54eefb2b159dec2f55

webapp2 should first try "import ndb", and only if that fails, should we import 
it from google.appengine.ext.ndb. Similar to import pattern for simplejson. ndb 
is developed independently of the App Engine SDK, and if the user has a newer 
version on her path, we should prefer it to the version bundled with the SDK.

Original comment by da...@davidbaumgold.com on 17 Jan 2012 at 9:02

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 8aa9e0cc56c8.

Original comment by rodrigo.moraes on 31 Jan 2012 at 4:05