I'll be more than happy to assist. How do I start? On Aug 4, 2017 11:34 AM, "Massimo Di Pierro" <massimo.dipie...@gmail.com> wrote:
> Can I ask for some help in editing the book. specifically: > > 1) describe {{=ASSIGNJS(js_var = python_var)}} > > 2) new syntax to store .table files in DB itself instead of in the > filesystem (works with any DB) > > from gluon import DAL, Field > > from gluon.dal import InDBMigrator > > db = DAL(uri, adapter_args=dict(migrator=InDBMigrator)) > > 3) new syntax to connect to MySQL and Potgresql on GAE > > Follow instructions https://cloud.google.com/appengine/docs/ > flexible/python/using-cloud-sql then use DAL//web2py URI: > > "google:MySQLdb://username:password@/dbname?unix_socket=/ > cloudsql/projectname:dbzone:dbinstancename" > > "google:psycopg2://username:password@/dbname?unix_socket=/ > cloudsql/projectname:dbzone:dbinstancename" > > In this case the adapter_args=dict(migrator=InDBMigrator)) is the default > behavior. > > 4) If you need to select lots of data and you do not want web2py to parse > it into object but get the raw data as returned by the DB as a list of > tuples: > > rows = db(query).select(processor=lambda *a,**b: a[0]) > > -- > 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. > For more options, visit https://groups.google.com/d/optout. > -- 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. For more options, visit https://groups.google.com/d/optout.