[web2py] custom pydal adapter

2018-01-18 Thread 'DenesL' via web2py-users
Hello in an older version of web2py I had code to create a custom adapter. This code does not work in the latest version of web2py so I tried to update it, but web2py has changed so much internally that I am having a bit of trouble. Any hints on how to rewrite the following are appreciated:

[web2py] $.web2py.component

2018-01-18 Thread Andrea Fae'
Who is able to explain well $.web2py.component? What is the meaning? Where is in the web2py book? Thank you -- 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)

[web2py] Re: big commit calculating

2018-01-18 Thread Leonel Câmara
Caching it would be the most obvious. Denormalization also helps a lot as you can reduce a lot of the queries that way. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: $.web2py.component

2018-01-18 Thread Andrea Fae'
Anthony, you are very good teacher. But can I have a couple of examples using web2py and javascript? thank in advance. Il giorno giovedì 18 gennaio 2018 20:46:44 UTC+1, Anthony ha scritto: > > The end of this section >

[web2py] Re: $.web2py.component

2018-01-18 Thread Dave S
On Thursday, January 18, 2018 at 11:58:47 AM UTC-8, Andrea Fae' wrote: > > Anthony, you are very good teacher. But can I have a couple of examples > using web2py and javascript? thank in advance. > The first example (a simple one, but a starting point) is in the section Anthony mentions. For

[web2py] Re: $.web2py.component

2018-01-18 Thread Anthony
The end of this section mentions web2py_component(), which is an alias for $.web2py.component(). It is simply the Javascript function that loads an Ajax component on a page (the first argument is the URL and the second

[web2py] Re: $.web2py.component

2018-01-18 Thread Anthony
On Thursday, January 18, 2018 at 2:58:47 PM UTC-5, Andrea Fae' wrote: > > Anthony, you are very good teacher. But can I have a couple of examples > using web2py and javascript? thank in advance. > Maybe think about specific use cases, try something, and come back with specific questions if you

[web2py] ( parser stack overflow) when writing a row with 140 fields

2018-01-18 Thread Jaison Raj
Hi guys, I am trying to write a row with 140 fields into the database, with the following script: controller: *WCEL={item1:value1,item2:value2,...item140:value140}* *db.WCEL.update_or_insert(**(WCEL))* model: *db = DAL('sqlite://storage.sqlite1')* *db.define_table('WCEL',* *

[web2py] Re: custom pydal adapter

2018-01-18 Thread 'DenesL' via web2py-users
I tried the following: import datetime from pydal.parsers import for_type def _blob(self,value): return to_native(to_bytes(value)) def _time(self, value): if isinstance(value, datetime.time): return value.time() return datetime.time(int(value[0:2]), int(value[2:4])) BLOBPARSER =

[web2py] Re: $.web2py.component

2018-01-18 Thread Dave S
On Thursday, January 18, 2018 at 1:01:37 PM UTC-8, Dave S wrote: > > > > On Thursday, January 18, 2018 at 11:58:47 AM UTC-8, Andrea Fae' wrote: >> >> Anthony, you are very good teacher. But can I have a couple of examples >> using web2py and javascript? thank in advance. >> > > The first