[web2py] Optimization of js and css error

2017-09-11 Thread Simona Chovancová
I am trying to use *response.optimize_js = 'concat,minify,inline' *and *response.optimize_css = 'concat,minify,inline' *in 10_db.py in order to optimize my code, but it gives me this error: Traceback (most recent call last): File "/srv/www/web2py/gluon/restricted.py", line 227, in restricted

[web2py] Re: web2py 2.15.4 is OUT

2017-09-11 Thread IVINH
LOAD function is not work? My view: {{=LOAD(c='cms',f='menu',ajax=False)}} Traceback (most recent call last): File "C:\web2py216\gluon\restricted.py", line 219, in restricted exec(ccode, environment) TypeError: can only concatenate list (not "map") to list On Saturday, September 2, 201

[web2py] Re: Optimization of js and css error

2017-09-11 Thread Simona Chovancová
Update: My mistake, I had bad routes, solved On Monday, September 11, 2017 at 9:18:56 AM UTC+2, Simona Chovancová wrote: > > I am trying to use *response.optimize_js = 'concat,minify,inline' *and > *response.optimize_css > = 'concat,minify,inline' *in 10_db.py in order to optimize my code, but

[web2py] Re: left join and common_filter

2017-09-11 Thread Marvix
Found that was already discussed some years ago, but I think isn't resolved https://groups.google.com/forum/#!topic/web2py/WY2U54uoTno -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

Re: [web2py] Re: Support for BIT(1) as boolean?

2017-09-11 Thread Alfonso Serra
Hi Massimo. This is the db declaration im using. It works well so far not using copy. Standard MySQL 5.5.24 connection. I have read that using BIT may cause problems on calculations with another fields, so TINYINT(1) (-127, 127) would do for a lack of a better option. db = DAL("mysql://mysqlus

[web2py] Re: web2py 2.15.4 is OUT

2017-09-11 Thread Anthony
On Monday, September 11, 2017 at 4:03:59 AM UTC-4, IVINH wrote: > > LOAD function is not work? > > My view: {{=LOAD(c='cms',f='menu',ajax=False)}} > > Traceback (most recent call last): > File "C:\web2py216\gluon\restricted.py", line 219, in restricted > exec(ccode, environment) > TypeError:

[web2py] Smartgrid Styles

2017-09-11 Thread Leandro Sebastian Salgueiro
Hi all, I would like to change a Smartgrid table view using bootstrap according to web2py book, Smartgrids are "highly customisables" but I cannot find a way to do this... Can anyone give me a hint on this please? BR Leandro -- Resources: - http://web2py.com - http://web2py.com/book (

[web2py] Re: Future releases and support

2017-09-11 Thread Anthony
On Monday, September 11, 2017 at 2:46:17 AM UTC-4, Arnab Dutta wrote: > > Thanks Anthony, just what I wanted to know whether the framework and > community is still active as I am building some internal tools for my > company on web2py. Most of te tutorials and documents were from 2016 and > befo

[web2py] Re: web2py 2.15.4 is OUT

2017-09-11 Thread Leonel Câmara
IVINH please see: https://github.com/web2py/web2py/issues/1753 That's a bug seen with python 3, I have submitted a fix -- 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

Re: [web2py] Re: Newbie question about github / trunk

2017-09-11 Thread Nico Zanferrari
Well, if you cannot use git, in fact you can do this: - download https://github.com/web2py/web2py/archive/master.zip and uncompress it (for example in /tmp/web2py.master) - download https://github.com/web2py/pydal/archive/master.zip and uncompress it. Move its content inside the web2py directory (

[web2py] Re: web2py 2.15.4 is OUT

2017-09-11 Thread IVINH
Thank Leonel. On Monday, September 11, 2017 at 7:18:08 PM UTC+7, Leonel Câmara wrote: > > IVINH please see: > https://github.com/web2py/web2py/issues/1753 > > That's a bug seen with python 3, I have submitted a fix > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - ht

[web2py] Re: Smartgrid Styles

2017-09-11 Thread Anthony
As noted here , smartgrid takes the same arguments as grid. For customizing the grid, check out http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-grid (in particular, look at the "

[web2py] Re: Update value on view

2017-09-11 Thread Anthony
Looks like your JS runs only at window.onload, but the graph data are delivered via Ajax requests. Anthony On Sunday, September 10, 2017 at 10:48:31 PM UTC-4, Wabbajack wrote: > > Hi Anthony, > > I have successfully get the values from another file... thanks... > But for now i have another probl

[web2py] Re: Smartgrid Styles

2017-09-11 Thread Leandro Sebastian Salgueiro
Thanks Anthony! Le lundi 11 septembre 2017 16:20:21 UTC+2, Anthony a écrit : > > As noted here > , > > smartgrid takes the same arguments as grid. For customizing the grid, check > out > http://web2py.co

Re: {Disarmed} Re: {Disarmed} [web2py] Re: pytest and controllers protected with auth

2017-09-11 Thread António Ramos
@Mathieu Clabaut I see a lot of space for a Testing tutorial with web2py... Please sit down and do it :) I will buy your book/video especially because there is nothing yet about it... Regards António 2017-08-21 7:56 GMT+01:00 Mathieu Clabaut : > You may have a look at my work in progress pytes

[web2py] Re: Smartgrid Styles

2017-09-11 Thread Anthony
Also, note the the grid is just a nested web2py server-side DOM object, so you can always manipulate it using the methods described here: http://web2py.com/books/default/chapter/29/05/the-views#Server-side-DOM-and-parsing. Anthony On Monday, September 11, 2017 at 10:20:21 AM UTC-4, Anthony wrot

[web2py] Re: Why web2py server hangs/freeze?

2017-09-11 Thread Dave S
On Sunday, September 10, 2017 at 10:44:25 PM UTC-7, Narendra Kumar wrote: > > Hi Massimo, > > Good Morning. And sorry for my poor English. > We can adjust; we have people posting from all over (but some of the people who learned English later can speak better English than some of us native spe

[web2py] Has the result of a datetime Field changed?

2017-09-11 Thread Martin Weissenboeck
What is the type of the result of a Field(...;'datetime') ? I think, it should be "datetime" (and I am shure it has been in version 2.14.x), but web2py 2.15.4 delivers a "str". def dttest2(): form = SQLFORM.factory(Field('startzeit', 'datetime')) if form.process().accepted: return

[web2py] HTML5 widgets on SQLFORM.factory

2017-09-11 Thread Fabiano Almeida
Hi @ll! How to use HTML5 widgets on SQLFORM.factory? I have this peace of code: form = SQLFORM.factory(Field('year', 'integer', label='Year')) I like use this HTML5 input type="number" widget. Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.c

[web2py] Re: Has the result of a datetime Field changed?

2017-09-11 Thread Dave S
On Monday, September 11, 2017 at 12:53:52 PM UTC-7, mweissen wrote: > > What is the type of the result of a Field(...;'datetime') ? > > I think, it should be "datetime" (and I am shure it has been in version > 2.14.x), but web2py 2.15.4 delivers a "str". > > Which DB engine are you using? In SQ

[web2py] Re: HTML5 widgets on SQLFORM.factory

2017-09-11 Thread Anthony
On Monday, September 11, 2017 at 4:30:40 PM UTC-4, Fabiano Almeida wrote: > > Hi @ll! > > How to use HTML5 widgets on SQLFORM.factory? > > I have this peace of code: > form = SQLFORM.factory(Field('year', 'integer', label='Year')) > > I like use this HTML5 input type="number" widget. > You can do

[web2py] Re: Has the result of a datetime Field changed?

2017-09-11 Thread Anthony
On Monday, September 11, 2017 at 6:15:50 PM UTC-4, Dave S wrote: > > > > On Monday, September 11, 2017 at 12:53:52 PM UTC-7, mweissen wrote: >> >> What is the type of the result of a Field(...;'datetime') ? >> >> I think, it should be "datetime" (and I am shure it has been in version >> 2.14.x), b

[web2py] Possible problem with loading and installing compiled applications in web2py

2017-09-11 Thread benjaminato097
Today I came across some unusual behaviour in web2py when I tried to install a compiled web2py application. Coming home I decided to see if I could replicate the same problem on my Mac (running macos Sierra) and found some equally unusual behaviour. *The problem can be easily demonstrated:* 1.

[web2py] Re: Has the result of a datetime Field changed?

2017-09-11 Thread Dave S
On Monday, September 11, 2017 at 5:30:22 PM UTC-7, Anthony wrote: > > On Monday, September 11, 2017 at 6:15:50 PM UTC-4, Dave S wrote: >> >> >> >> On Monday, September 11, 2017 at 12:53:52 PM UTC-7, mweissen wrote: >>> >>> What is the type of the result of a Field(...;'datetime') ? >>> >>> I thin

[web2py] Re: Possible problem with loading and installing compiled applications in web2py

2017-09-11 Thread Dave S
On Monday, September 11, 2017 at 5:31:32 PM UTC-7, benjami...@gmail.com wrote: > > Today I came across some unusual behaviour in web2py when I tried to > install a compiled web2py application. Coming home I decided to see if I > could replicate the same problem on my Mac (running macos Sierra)

[web2py] Re: Possible problem with loading and installing compiled applications in web2py

2017-09-11 Thread Anthony
Did you reload routes or restart the web server? On Monday, September 11, 2017 at 8:31:32 PM UTC-4, benjaminato...@gmail.com wrote: > > Today I came across some unusual behaviour in web2py when I tried to > install a compiled web2py application. Coming home I decided to see if I > could replica

[web2py] data represent in views is loaded faster using for loop python rather than using response json

2017-09-11 Thread 黄祥
why the data represent in views is loaded faster using for loop python rather than using response json? is it normal or maybe something wrong with my code? *e.g.* *controllers/api.py* @auth.requires_login() @request.restful() def json_pie_test(): def GET(id): query = (db.product.id ==