[web2py] Re: SQLFORM very slow when table is big

2015-02-21 Thread Niphlod
IS_IN_DB() is a validator. Usually you need it to turn a foreign key to a human-understandable value, or to let the human select values from a set. Depending on your model and on the number of values available, generating the default widget in an edit form, which is an html SELECT, can take time

[web2py] SQLFORM very slow when table is big

2015-02-21 Thread André Kablu
Hi, I made some tests with lots of data on some tables. In some tests I was using: SQLFORM(db.table, record=rc) But it became very slow after putting data When I was debugging I found that if you use IS_IN_DB() it searches the other table even if you are selecting one existing record or inse

[web2py] Re: IMPORTANT - WEB2PY CONSULTING

2015-02-21 Thread André Kablu
Please add us Massimo: Company: NRG Internet Solutions Incorporated: Brazil website: http://www.nrg.com.br On Sunday, February 15, 2015 at 8:21:36 PM UTC-2, Massimo Di Pierro wrote: > > We need to update the list of companies that provide web2py consulting. > This list is obsolete: > > http://w

[web2py] Re: Return object from represent method of field

2015-02-21 Thread Leonardo Pires Felix
I think, like the represented of the widget of the field. But i've seen it just works with upload. If extend it to allow to other types to represent with custom html(like a tooltip in my case) Em sábado, 21 de fevereiro de 2015 15:06:13 UTC-2, Leonardo Pires Felix escreveu: > > There is how mak

[web2py] Re: Return object from represent method of field

2015-02-21 Thread Leonardo Pires Felix
There is how make a widget only for represent the field on html? like to the user to see a field with a tooltip, with the span element that i've show above, without making the export classes get the represented(html) inside the .csv,txt etc..? Em terça-feira, 17 de fevereiro de 2015 16:02:20 UT

[web2py] Re: Request vars - basic question

2015-02-21 Thread Massimo Di Pierro
we choose an unfortunate name for gluon.serializers.json I can see how that can create confusion. On Saturday, 21 February 2015 06:03:24 UTC-6, clara wrote: > > Hello all, > > Massimo, I tried the same, I saved request.vars.input into a file and > tried:from a python console:imported json and js

[web2py] Re: bar chart

2015-02-21 Thread Massimo Di Pierro
This is not really a web2py question. You have to use a JS library. For example: 1) download http://www.chartjs.org/assets/Chart.min.js into yourapp/static/js 2) create a controller like def index(): response.files.append(URL('static','js/Chart.min.js')) data = { 'labels': [

[web2py] Re: can't type forward slash in editor

2015-02-21 Thread dangnearhere
Sorry I was slow to get back to this, I haven't learned yet how to subscribe to a post. Never used google groups before. I did get the problem to go away by clicking the gear icon on the right for w2p admin interface settings. I had to disable "Enable Close Tag". This must be the functionality

[web2py] Re: can't type forward slash in editor

2015-02-21 Thread Paolo Valleri
Hi, it seems you have spotted a codemirror issue, which has been fixed in the new version 4.13. see https://groups.google.com/d/topic/codemirror-announce/0bPIIIR2M8I/discussion I'll make a PR to fix it in web2py. Paolo On Wednesday, February 18, 2015 at 4:56:04 PM UTC+1, dangne...@juno.com wrot

[web2py] Re: Request vars - basic question

2015-02-21 Thread clara
Hello all, Massimo, I tried the same, I saved request.vars.input into a file and tried:from a python console:imported json and json.loads worked fine. You nailed the problem: I imported the wrong json module: I changed the imports from: *from gluon.serializers import json* to: *from gluon.cont

[web2py] bar chart

2015-02-21 Thread T.R.Rajkumar
I want to display a bar chart. I went through the book, wiki plugins widget bar chart. I am unable to comprehend the matter. So pl. tell me what I should write in the controller and view to show a bar chart. Thanks in advance. -- Resources: - http://web2py.com - http://web2py.com/book (Documen