On Friday, August 4, 2017 at 9:32:58 AM UTC-7, Massimo Di Pierro wrote:
>
> The book is online https://github.com/web2py/web2py-book
> You can fork it edit it, then submit a PR. You should be able to do 
> everything online.
>
> Massimo
>

I have a setup for it at home, but I don't expect to be there over the 
weekend (due to a non-computer-related event). 

/dps


> On Friday, 4 August 2017 10:43:14 UTC-5, CDA wrote:
>>
>> I'll be more than happy to assist. How do I start?
>>
>> On Aug 4, 2017 11:34 AM, "Massimo Di Pierro" <massimo....@gmail.com 
>> <javascript:>> 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+un...@googlegroups.com <javascript:>.
>>> 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.

Reply via email to