Hi, 

There is this warning in GAE deployment:

Please remove any imports of google.appengine.api.rdbms. First Generation 
Cloud SQL instances have been shut down, and rdbms.py will be removed in a 
future release. See: 
https://cloud.google.com/sql/docs/mysql/deprecation-notice

If you deploy using Datastore you don't need rdbms at all so I took this 
workaround:

In pydal _gae.py, line 15:

from google.appengine.api import namespace_manager #, rdbms

In pydal google.py lines 15, 16:
if gae:
    from .._gae import ndb, namespace_manager, classobj, NDBPolyModel #, 
rdbms 

In pyday google.py lines 54, 55:
#def connector(self):
#       return rdbms.connect(**self.driver_args)

It obviously disable @adapters.register_for("google:sql") but if Datastore 
is used  there is no problem.


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/405cd43a-5255-455e-b223-e982da9b9829n%40googlegroups.com.

Reply via email to