[web2py] again on javascript chart

2016-05-11 Thread Paolo Amboni
*Since it seems an hot topic:* witch js library works better with web2py - python - (pandas) to plot some nice charts? which need less js coding? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.co

[web2py] Re: Highcharts in web2py

2016-05-11 Thread Paolo Amboni
why did you choose Highcharts? I'm still searching the right library for web2py!! Il giorno mercoledì 11 maggio 2016 15:15:38 UTC+2, kecajk...@gmail.com ha scritto: > > Hi Guys, > > I was able to create simple graph by using highcharts.js ( > http://www.highcharts.com/) However since it's ja

[web2py] Re: again on javascript chart

2016-05-12 Thread Paolo Amboni
sday, May 11, 2016 at 9:39:17 AM UTC-4, Paolo Amboni wrote: >> >> *Since it seems an hot topic:* >> >> witch js library works better with web2py - python - (pandas) to plot >> some nice charts? >> > > The question is really which works best with Python/Pan

[web2py] ajax return multiple javascript one at a time

2016-06-05 Thread Paolo Amboni
I don't know if it is possible but: I need to query 4 different db with a single form input. Since each query may need some time to perform i want to show the the result of the first query as soon as it is available, and then move to the second query and so on. I tried calling multiple ajax fun

[web2py] Re: ajax return multiple javascript one at a time

2016-06-07 Thread Paolo Amboni
scritto: > > What do you see in the browser network panel (are both requests firing, > and if so, what are the responses?) and JS console (any errors reported)? > > On Sunday, June 5, 2016 at 7:26:57 AM UTC-4, Paolo Amboni wrote: >> >> I don't know if it is possi

[web2py] web2py on android

2016-07-19 Thread Paolo Amboni
Is it possible to do something like that with web2py? Android apps with Python, Flask and a WebView (https://kivy.org/planet/2016/05/android-apps-with-python-flask-and-a-webview/) Thanks!! -- Resources: - http://we

[web2py] Re: web3py

2016-01-20 Thread Paolo Amboni
All option are good, the important is to have python 3 compatibility!! Il giorno giovedì 14 gennaio 2016 06:35:36 UTC+1, Massimo Di Pierro ha scritto: > > It is another experiment. > > It is a rewrite of some of the web2py modules and supports 90% of the > current web2py syntax at 2.5x the speed

[web2py] Re: How do I make my web2py app able to use the device hardwares like camera?

2016-01-20 Thread Paolo Amboni
For camera try opencv, it has a nice python library Il giorno domenica 17 gennaio 2016 18:05:50 UTC+1, henryj...@gmail.com ha scritto: > > also how to make it able to use some other apps on the device? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.

[web2py] download pandas dataframe

2016-02-19 Thread Paolo Amboni
I've a pandas dataframe that i want to download as a csv file. I know that i can output a dataframe to a csv file : dataframe.to_scv(path,sep) But how can a user download his generated file? Should i write it in a static directory, perhaps with the username prefix? Is there a way to generate a vir

[web2py] Re: Background process

2016-04-26 Thread Paolo Amboni
I'm not sure if i get your question right, but try the Scheduler. I've done a project that retrieve light, humidity and temperature from an arduino and store in a sqlite db on the server and it works fine. You also don't need a real time clock on the arduino. Il giorno giovedì 14 aprile 2016 06:

[web2py] matplotlib passing parameters from the view

2016-05-05 Thread Paolo Amboni
I'm trying to build a single function (in a controller) that generate different matplotlib graph.. So the function that generate the stream works fine: *def grafico*(title='title',xlab='x',ylab='y' data= ): fig=Figure() return stream.getvalue() the function that call the

[web2py] Re: matplotlib passing parameters from the view

2016-05-05 Thread Paolo Amboni
I stored the id in a session variable and it works fine!! But why the URL helper didn't send the args to the function? Il giorno giovedì 5 maggio 2016 09:36:32 UTC+2, Paolo Amboni ha scritto: > > I'm trying to build a single function (in a controller) that generate > differe

[web2py] Re: matplotlib passing parameters from the view

2016-05-05 Thread Paolo Amboni
framework? Il giorno giovedì 5 maggio 2016 10:11:45 UTC+2, Niphlod ha scritto: > > there's a problem in your syntax. > > it's usually URL('blabla', args=[], vars=dict()) > > while your code reports > > args=[..., dict=()] > > On Thursday, May 5, 201

[web2py] common_filter

2015-07-03 Thread Paolo Amboni
Can someone translate the expression db.blog_post._common_filter = *lambda query:* db.blog_post.is_public == True *without the use of lambda function?* I'm trying to understand how to set up common filter in controller but lambda function always confuse me. *So, for now, the only way to set th

[web2py] Re: common_filter

2015-07-06 Thread Paolo Amboni
al query will be passed into the > function. You can name that argument whatever you want. > > Anthony > > On Friday, July 3, 2015 at 12:00:22 PM UTC-4, Paolo Amboni wrote: >> >> Can someone translate the expression >> >> db.blog_post._common_filter = *la

[web2py] Tutorial bootstrap+web2py

2015-07-21 Thread Paolo Amboni
Can someone point me to a *comprehensive tutorial* (or a group of tutorial) on how to customize web2py using bootstrap themes? If I past a theme in bootstrap.mon.css my app always use the black theme.! Which are the relations between web2py.css, web2py-bootstrap3.css, bootstrap.min.css and boot

[web2py] scheduler

2015-08-03 Thread Paolo Amboni
i can't understand why this scheduled task always fails. *It sems something related to the command commit().* But without it no changes are saved in the db. The same function without the commit command works fine in a controller The code is the following: db.py db.define_table('test', Field('

[web2py] Re: scheduler

2015-08-03 Thread Paolo Amboni
tantiate Scheduler() with migrate=True at least >> one time, in order to let web2py create the tables needed by the Scheduler. >> >> El lunes, 3 de agosto de 2015, 6:40:28 (UTC-3), Paolo Amboni escribió: >>> >>> >>> i can't understand why this sched

[web2py] Again on scheduler

2015-08-03 Thread Paolo Amboni
What if i need to *run an action every hour*? (Let's say to strore a data fom a sensor). I'm also trying to use cron but when i start python web2py.py -Y it gives me errors. Is there a way to reschedule the same action every hour? Thanks. -- Resources: - http://web2py.com - http://web2py.com/b

[web2py] Re: When will we have a "proper" forum ?

2015-08-04 Thread Paolo Amboni
One problem of google groups is the lack of categories. What about a g+ comunity? Il giorno mercoledì 29 luglio 2015 17:00:00 UTC+2, Ramos ha scritto: > > I hate google groups because its not easy to find help so people keep > asking the same question over and over again. > we should follow other

[web2py] always https

2015-08-09 Thread Paolo Amboni
I've just set up a small server for web2py on ubuntu server 15.04 using the default script. all is working fine, but i don't understand why when i point the ip of the server for the default app it always go for https. http://2.238.98.120/ -> https://2.238.98.120/ I need the exact opposite thank

[web2py] Re: always https

2015-08-10 Thread Paolo Amboni
OK I'm waiting for a free certificate. But what i can't understand is why all the site is https not only the admin interface. I will study all the deployment chapter of the book to find some clues and how to use the new certificate. Thanks. Il giorno lunedì 10 agosto 2015 02:56:39 UTC+2, Anthon

Re: [web2py] Re: always https

2015-08-10 Thread Paolo Amboni
s not that advanced for the moment. The server is only for educational purpose and to store some data from sensors. Thanks. Il giorno lunedì 10 agosto 2015 10:39:16 UTC+2, Pablo Angulo ha scritto: > > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > El 10/08/15 a las 10:11

[web2py] Re: SQLFORM with external references

2015-08-11 Thread Paolo Amboni
If you want a dropdown from a reference table you have to put a *format at the end of the table*. So the dropdown show the formatted string and the value is the id (see example) # Metodi per le analisi db.define_table('metodi', Field('metodo',required=True), Fiel

[web2py] auth.settings.extra_fields problem

2015-08-14 Thread Paolo Amboni
This don't work: auth.settings.extra_fields['auth_user']= [ Field('id_dep','reference departement'),] : Cannot resolve reference departement in auth_user definition This work: auth.settings.extra_fields['auth_user']= [ Field('id_dep','integer'),] Why? Is there a way to make it work? -- Resour

[web2py] Re: auth.settings.extra_fields problem

2015-08-14 Thread Paolo Amboni
ne > table department before define auth tables. > > best regards, > stifan > > On Friday, August 14, 2015 at 4:46:45 PM UTC+7, Paolo Amboni wrote: >> >> This don't work: >> auth.settings.extra_fields['auth_user']= [ Field('id_dep',

[web2py] formstyle strange behaviour

2015-08-21 Thread Paolo Amboni
I was just experimenting different styles and i came across this strange behaviour: if i put the formstyle='table3cols' the form appear different than without it! So what is the default value? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

[web2py] Re: formstyle strange behaviour

2015-08-21 Thread Paolo Amboni
web2py/web2py/blob/master/applications/welcome/private/appconfig.ini#L18) > > and is set to "bootstrap3_inline". > > Anthony > > On Friday, August 21, 2015 at 10:06:45 AM UTC-4, Paolo Amboni wrote: >> >> I was just experimenting different styles and i

[web2py] CMS WEB2PY

2015-10-10 Thread Paolo Amboni
After some research i finally concluded that there is no stable and structured CMS made for web2py (tell me if i'm wrong). Which is a python cms that better can be put beside a web2py site (already made)? Thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http:

Re: [web2py] PyCharm license for web2py dev - who wants?

2015-10-12 Thread Paolo Amboni
I'm using pycharm community edition, that for what I understand is free. Are these licenses for the pro version? Is the pro version supporting web2py? If yes i'm iterested. Il giorno domenica 11 ottobre 2015 21:29:54 UTC+2, Encompass solutions ha scritto: > > I can try it if you want. +1 > > On S

[web2py] Re: CMS WEB2PY

2015-10-12 Thread Paolo Amboni
x27;s also Mezzanine and > Django CMS). > > Anthony > > On Saturday, October 10, 2015 at 3:32:22 AM UTC-4, Paolo Amboni wrote: >> >> After some research i finally concluded that there is no stable and >> structured CMS made for web2py (tell me if i'm wrong)

Re: [web2py] Re: CMS WEB2PY

2015-10-13 Thread Paolo Amboni
ght now > you can see the site (work in progress) at www.daxslab.com, suggestions > and criticism are very welcomed > > El 12/10/15 a las 06:09, Paolo Amboni escribió: > > Are there some contraindications to use web2py with php based cms like > joomla? > > Il gio

Re: [web2py] Re: CMS WEB2PY

2015-10-13 Thread Paolo Amboni
Very interesting if you release it on github I'll definitely try it. -- 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

Re: [web2py] Re: CMS WEB2PY

2015-10-15 Thread Paolo Amboni
to github when it's finished (the cms), right now > you can see the site (work in progress) at www.daxslab.com, suggestions > and criticism are very welcomed > > El 12/10/15 a las 06:09, Paolo Amboni escribió: > > Are there some contraindications to use web2py with php ba