[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://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.


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

2016-06-07 Thread Paolo Amboni
Ok, debugged in the js console.
They do fire up, but thanks to your suggestion i did find that the problem 
was in the response from the web2py function.
Now all works fine.

If only we could use python instead of javascrit... :-)



Il giorno domenica 5 giugno 2016 14:38:57 UTC+2, Anthony ha 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 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 function one for each query like :
>>
>> jQuery('#myform').submit(function() {
>>  ajax('{{=URL('lab')}}', ['codice'], ':eval');
>>  ajax('{{=URL('cep')}}', ['codice'], ':eval');
>>  return false;
>> });
>>
>> but only the first works.
>> Are there other methods to do such a thing?
>>
>> Thanks.
>>
>

-- 
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.


[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 function one for each query like :

jQuery('#myform').submit(function() {
 ajax('{{=URL('lab')}}', ['codice'], ':eval');
 ajax('{{=URL('cep')}}', ['codice'], ':eval');
 return false;
});

but only the first works.
Are there other methods to do such a thing?

Thanks.

-- 
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.


[web2py] Re: again on javascript chart

2016-05-12 Thread Paolo Amboni
Ok, thanks. After long searching on the web i choose Chart.js. It seems 
very simple to use (in the web2py filosofy). I'll build my own library to 
port the data form "pyadl"  or from pandas!! 

Il giorno giovedì 12 maggio 2016 15:42:38 UTC+2, Anthony ha scritto:
>
> On Wednesday, 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/Pandas (web2py is 
> irrelevant), and for that you might be better off asking elsewhere.
>
> And if you're interested in JS charting libraries, the server-side 
> language you are using probably won't help you differentiate much among the 
> options, except for the few that have Python specific APIs (for example, 
> Vincent <http://vincent.readthedocs.io/en/latest/>, which is a Python 
> interface to Vega, and Bokeh <http://bokeh.pydata.org/en/latest/>).
>
> Anthony
>

-- 
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.


[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 javascript it's really 
> hard to add some data from controller. I found python module for highcharts:
>
>
> http://nbviewer.jupyter.org/github/arnoutaertgeerts/python-highcharts/blob/master/Tutorial.ipynb
>
>
> Anybody has an experience or idea how to create chart using it and how to 
> display it in the view? 
>
> Cheers.
>

-- 
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.


[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.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.


[web2py] Re: matplotlib passing parameters from the view

2016-05-05 Thread Paolo Amboni
Same problem!
the args and var are not passed to the receiving function in this specific 
case.
(I tried both args and vars alone first).
With session all works fine.

I find very complex the way web2py handle matplotlib plots.
Is there other plotting library that better integrate in web2py 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, 2016 at 9:53:44 AM UTC+2, Paolo Amboni wrote:
>>
>> 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 
>>> 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 privious *works fine but not as i want:*
>>>
>>>
>>> *def graf_comp_gior*():
>>> test_id=1 # *I need to set the id on the fly*
>>> print response.args # *Always none why?*
>>> print response.vars #*Always none why?*
>>>
>>> rows = db(db.tat.id_test==test_id).select()
>>> tat=pd.DataFrame(rows.as_list())
>>>  #manupulate the data as i need
>>>
>>> graf=grafico()
>>> 
>>> return graf
>>>
>>> This is the view with the embedded graph works fine:
>>>
>>> {{{extend 'layout.html'}}
>>> TAT completi per l'analisi {{=variabili['anal']}}
>>> {{=IMG(_src=URL('graf_comp_gior',
>>> *args=[argomenti[0],vars=dict('id'=argomenti[0])]))}} **How can i pass 
>>> some data to the previous function?*
>>>
>>> *Do i need to store them in a session?*
>>> *Thanks!!*
>>>
>>

-- 
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.


[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 
> 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 privious *works fine but not as i want:*
>
>
> *def graf_comp_gior*():
> test_id=1 # *I need to set the id on the fly*
> print response.args # *Always none why?*
> print response.vars #*Always none why?*
>
> rows = db(db.tat.id_test==test_id).select()
> tat=pd.DataFrame(rows.as_list())
>  #manupulate the data as i need
>
> graf=grafico()
> 
> return graf
>
> This is the view with the embedded graph works fine:
>
> {{{extend 'layout.html'}}
> TAT completi per l'analisi {{=variabili['anal']}}
> {{=IMG(_src=URL('graf_comp_gior',
> *args=[argomenti[0],vars=dict('id'=argomenti[0])]))}} **How can i pass 
> some data to the previous function?*
>
> *Do i need to store them in a session?*
> *Thanks!!*
>

-- 
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.


[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 privious *works fine but not as i want:*


*def graf_comp_gior*():
test_id=1 # *I need to set the id on the fly*
print response.args # *Always none why?*
print response.vars #*Always none why?*

rows = db(db.tat.id_test==test_id).select()
tat=pd.DataFrame(rows.as_list())
 #manupulate the data as i need

graf=grafico()

return graf

This is the view with the embedded graph works fine:

{{{extend 'layout.html'}}
TAT completi per l'analisi {{=variabili['anal']}}
{{=IMG(_src=URL('graf_comp_gior',
*args=[argomenti[0],vars=dict('id'=argomenti[0])]))}} **How can i pass some 
data to the previous function?*

*Do i need to store them in a session?*
*Thanks!!*

-- 
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.


[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:09:41 UTC+2, Georges Vidal ha scritto:
>
> HI
>
> I work on a project based on Python and PCDUINO plateform.
>
> I would like to use web2py framework to simplify the web communication 
> between the client and server.
>
> The process to implement in a few words is :
>
> On the server side : Define a python process that every 0.5 second asks 
> the gpsd daemon to retreive the GPS position of my car. Some calculations 
> are done during this process, so this job must be in a loop in parallel of 
> all other process.
>
> On the client side : (a browser in the car), I would like that the client 
> ask the server every second to get the position and results of calculations 
> and display them on the html page. I assume Ajax or cookies can to be use 
> to refresh only a part of the screen.
>
>
> So, my question is, how to implement such architecture ? Is framework 
> mandatory? 
>
> I know how to code the server process but not to make in parallel the 
> client process and make them to communicate to each other.
>
> Must I have to create a // server process getting data from GPS, doing 
> calculations twice per second and storing the result somewhere accessible 
> by the framework (i.e. database or cookies) ?
> If I use your framework to create web UI and every second read the server 
> results, is it possible to put a loop somewhere in the Framework code to 
> put everything in one place rather that on process to run calculation and 
> one for the framework ?
>
> If the first solution is retained, what is the best support to store data 
> (one row of about 30 fields, about 100 octets). Saying that I am not sure 
> that storing into sqlite database is the best, cookie or sessions may be 
> would be better ?
>
> So, any information advice would be appreciated.
>
>
> Best regards
>
> Georges 
>

-- 
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.


[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 virtual file to download?
Thanks!

-- 
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.


[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.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.


[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. It works. It it cleaner and should 
> be easier to port to python 3 than current web2py. 
>
> We are debating on web2py developers what to do:
> 1) backport some of the new modules to web2py (specifically the new Form 
> class instead of SQLFORM)
> 2) try to reach a 99.9% compatibility and release it as new major version 
> with guidelines for porting legacy apps
> 3) make some drastic changes in backward compatibility and release as a 
> different framework (but change what? we like web2py as it is)
>
> For now I am working on 2 to see how far I can push the backward 
> compatibility. But there are some functionalities I want remove or move in 
> an optional module (from legacy_web2py import *).
>
> Feel free to share your opinion on web2py developers.
>
> Massimo
>
>
> On Wed, Jan 13, 2016 at 11:04 PM, kelson _  > wrote:
>
>> I was looking at your recent web3py commits and hoped you could provide 
>> the web3py vision/intent (or point me towards it if I missed the 
>> discussion).
>>
>> Thanks,
>> kelson
>>
>
>

-- 
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.


Re: [web2py] Re: CMS WEB2PY

2015-10-15 Thread Paolo Amboni
I'm very curious  to see the config part!! Let us know when you publish the 
source code. Thanks.

Il giorno martedì 13 ottobre 2015 15:17:20 UTC+2, Carlos Cesar Caballero ha 
scritto:
>
> I am working on a site that is builded using custom made CMS, I am 
> planning to release it 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 based cms like 
> joomla?
>
> Il giorno sabato 10 ottobre 2015 18:34:55 UTC+2, Anthony ha scritto: 
>>
>> If it has to be Python, there are several Django based CMSes -- Wagtail 
>> <https://wagtail.io/>looks like a nice one (there'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).
>>> 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://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 .
> 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.


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 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.


Re: [web2py] Re: CMS WEB2PY

2015-10-13 Thread Paolo Amboni
The site is really well made. But te CMS is we2py based?

Il giorno martedì 13 ottobre 2015 15:17:20 UTC+2, Carlos Cesar Caballero ha 
scritto:
>
> I am working on a site that is builded using custom made CMS, I am 
> planning to release it 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 based cms like 
> joomla?
>
> Il giorno sabato 10 ottobre 2015 18:34:55 UTC+2, Anthony ha scritto: 
>>
>> If it has to be Python, there are several Django based CMSes -- Wagtail 
>> <https://wagtail.io/>looks like a nice one (there'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).
>>> 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://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 .
> 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.


[web2py] Re: CMS WEB2PY

2015-10-12 Thread Paolo Amboni
Are there some contraindications to use web2py with php based cms like 
joomla?

Il giorno sabato 10 ottobre 2015 18:34:55 UTC+2, Anthony ha scritto:
>
> If it has to be Python, there are several Django based CMSes -- Wagtail 
> <https://wagtail.io/>looks like a nice one (there'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).
>> 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://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.


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 Sun, Oct 11, 2015, 22:21 Francisco Ribeiro  > wrote:
>
>> Hello all,
>>
>> for those who know PyCharm is a great IDE from JetBrains that provides 
>> free licenses for Open Source projects like web2py ( 
>> https://www.jetbrains.com/buy/opensource/?product=pycharm ). To request 
>> such a license, I need to know how many of you would want one of these as 
>> well so I can provide them with a number of seats. 
>>
>> A "+1" response for me is enough but I will also need your email address 
>> to send you the license key (which you can send on a private message).
>>
>> Kind regards,
>> Francisco
>>
>> -- 
>> 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 .
>> 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.


[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://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.


[web2py] Re: formstyle strange behaviour

2015-08-21 Thread Paolo Amboni
Interesting!! Is much more than i can understand from the manual.
I can set formstyle="bostrap3_horizontal" or "bootstrap3_vertical"
Thanks!!!

Il giorno venerdì 21 agosto 2015 16:41:09 UTC+2, Anthony ha scritto:
>
> If no "formstyle" argument is provided, SQLFORM uses the value in 
> response.formstyle. In the welcome app, that value is set in the db.py 
> model file: 
> https://github.com/web2py/web2py/blob/master/applications/welcome/models/db.py#L35.
>  
> The value itself is stored in /private/appconfig.ini (
> https://github.com/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 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 (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.


[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 (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.


[web2py] Re: auth.settings.extra_fields problem

2015-08-14 Thread Paolo Amboni
It's true!!!
The table is in another model file.
I moved before the declaration and all works!!!
Which is the order web2py use to load models file?


Il giorno venerdì 14 agosto 2015 12:12:04 UTC+2, 黄祥 ha scritto:
>
> not sure without seeing the full code, but i guess you are not define 
> 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','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?
>>
>

-- 
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.


[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?

-- 
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.


[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),
Field('id_unitaoperativa','reference unitaoperativa'),
auth.signature,
   * format='%(metodo)s'*
)

Il giorno domenica 9 agosto 2015 16:03:42 UTC+2, Alessio Varalta ha scritto:
>
> Hi, I have a table with external references my main table is person and 
> this has a field called scheda that is a external references to a table 
> scheda. If i create a sqlform the field scheda is a input string and the 
> user must insert the id of the external references for the form submit 
> accept. There is the possibility to create sqlform where the field scheda 
> is a list of schede and the user can choose one field that is translate 
> like a id, because is not natural for the user insert a id. Now i simulate 
> the operation with javascript but is not the solution
>

-- 
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.


Re: [web2py] Re: always https

2015-08-10 Thread Paolo Amboni
OK now is much more clear.
If i replace the apache configuration file with the one that i find on the 
book i can have https  on admin interface only?
I got a certificate from startssl but i really can't find a way to export 
or generate the server.crt and server.key files.

My knowledge is 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, Paolo Amboni escribió:
> > 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 told you, some web2py contributor it was best to do it that way in 2015, 
> and everyone else thought it was a good idea, so the install script was 
> changed so that all http is redirected to https. Specifically, this config 
> tells apache "redirect all http to https":
>
>
> https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-ubuntu.sh
> 
>   RewriteEngine On
>   RewriteCond %{HTTPS} !=on
>   RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
>   CustomLog /var/log/apache2/access.log common
>   ErrorLog /var/log/apache2/error.log
> 
>
> while the one on the manual just configures http:
>
> http://web2py.com/books/default/chapter/29/13/deployment-recipes#mod_wsgi
>
> |
>   ServerName web2py.example.com
>   WSGIDaemonProcess web2py user=www-data group=www-data 
> display-name=%{GROUP}
>   WSGIProcessGroup web2py
>   WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py
>
> #This is Apache 2.2.x permission syntax. See Apache docs for 2.4 syntax
> # http://httpd.apache.org/docs/2.4/upgrading.html#run-time
>
>   
> AllowOverride None
> Order Allow,Deny
> Deny from all
> 
>   Allow from all 
> 
>   
>
>   AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*)
> /users/www-data/web2py/applications/$1/static/$2
>   
> Order Allow,Deny
> Allow from all
>   
>
>   
>   Deny from all
>   
>
>   
>   Deny from all
>   
>
>   CustomLog /private/var/log/apache2/access.log common
>   ErrorLog /private/var/log/apache2/error.log
> |
>
>
> > I will study all the deployment chapter of the book to find some clues 
> and how to use the new certificate.
> > Thanks.
>
> In the manual, or in the script, it configures a self-signed certificate. 
> You can use the script, or follow the book, but then you must replace the 
> self-signed certificates
>
> |  SSLCertificateFile /etc/apache2/ssl/server.crt
>   SSLCertificateKeyFile /etc/apache2/ssl/server.key
> |
>
> by certificated signed by startssl (only for non-commercial purposes), or 
> gandi.net, or any other "authority". You must follow their particular 
> procedure to generate your server.key file and then get the correct 
> server.crt file.
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v2
>
> iQIcBAEBCAAGBQJVyGMLAAoJEATsOw+FDrzILdIP+wfVshYU7F4teHsQZGfhCC5X
> md2vA3SuNU6LE4Q+kNHaFAoY05ziUywetObgGpw36+qe59I4UePa7F3f9aNqhaQP
> yFiBmdpNZZmBGUWzHABI9JbSXAjc5be/4ReNUDcAx7MKT7wpTEeXJDlsn62e4Xom
> M6pXfOrLrtygsXGB0JF0DeJ3QL+EjcXPvTEQBC3x3C3bnKugDtzKfNzbxWmUhdaY
> ybs5e4rmD1g+b6QG50j/imnnGm4Pqfo+iI9AmcxGfs4bjWp7vup6JV8Lr4W+CsAV
> sccY0Jy6FDeqhQpdKPWcLe3YRrpY0p6wouzOZHlUfF8FeFPT7F6p9rOxEdw/2yJ6
> uHfXG+9vFslM3y5lWfUp2ymp4dm0P31jfAc8eftLV+ZumiLDndO491EgJj8ewz9z
> +4VMWryEW+uJF1yUjpxikeQlvIMrGz+CEj4Yj/1mB6T4g3NKgtUdyIPP3ptjrWbQ
> ZMBTYPXhWETiNlf33N/YdSfz/9rzTjw+N1Vn1bc1k2WB9oyBGY7P2A/OqxrOD/G3
> Mr/bFWwH0pD2UpvSWI+nUwIDoPtwgCx0SyiyItqBXnKBc5rQKSmdDBd1WSyTLWbG
> zqesLbifwzfN+zK+x6oAozp2fUWLq4CgcPTOPp9RBPwdPSD7lDHrShzfoyqxYvDy
> CMRh3KXHYMhdG4H2e3IU
> =+WTS
> -END PGP SIGNATURE-
>
>

-- 
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.


[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, Anthony ha scritto:
>
> 3) Gandi SSL certificates are simple to use, work just fine, and are not 
>> expensive: gandi.net
>>
>
> You can even get a free one from http://www.startssl.com/?app=1.
>

-- 
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.


[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
thanks.

-- 
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.


[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 ideas as Massimo said 
> Ideas we had, ideas we...
>
> This one is very good as an example.
> https://forums.meteor.com
> A lot easier to learn from something like this...
>
> Regards
> António
>
>

-- 
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.


[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/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.


[web2py] Re: scheduler

2015-08-03 Thread Paolo Amboni
I'm sorry it's always the simplest explanation!!

Il giorno lunedì 3 agosto 2015 17:19:45 UTC+2, Niphlod ha scritto:
>
> you NEED db.commit() (not commiNt()) in the scheduler function. 
>
> On Monday, August 3, 2015 at 2:20:24 PM UTC+2, Lisandro wrote:
>>
>> Look for the traceback information in the table scheduler_run. If the 
>> function fails, there will be a record in that table showing some detail 
>> about the error. Post that traceback here so we can figure it out where is 
>> the error.
>>
>> Also, make sure you instantiate 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 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('tempo','datetime',default=request.now),
>>> Field('nome','string')
>>>)
>>>
>>> scheduler,py
>>> def func1():
>>> db.test.insert(nome='func1')
>>> db.commint()
>>>
>>> from gluon.scheduler import Scheduler
>>> import datetime
>>> scheduler= Scheduler(db,tasks=dict(test1=func1))
>>>
>>

-- 
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.


[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('tempo','datetime',default=request.now),
Field('nome','string')
   )

scheduler,py
def func1():
db.test.insert(nome='func1')
db.commint()

from gluon.scheduler import Scheduler
import datetime
scheduler= Scheduler(db,tasks=dict(test1=func1))

-- 
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.


[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 bootstrap-theme.min.css?

PS (I've read all the online book and followed all the video tutorial of 
DiPierro)

Thanks.

-- 
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.


[web2py] Re: common_filter

2015-07-06 Thread Paolo Amboni
Now it makes much more sense for me, i'm coming from PHP programming!!!
Thanks.

Il giorno venerdì 3 luglio 2015 23:38:00 UTC+2, Anthony ha scritto:
>
> A lambda function is just an anonymous function (i.e., one you define in 
> place without naming it). The common_filter does not have to be a lambda 
> function -- it can be any callable object that takes a single argument and 
> returns a Query object. So, you could do:
>
> def my_common_filter(query):
> return db.blog_post.is_public == True
> db.blog_post._common_filter = my_common_filter
>
> When the common filter function is called, the current query will be 
> passed to it. In the above example, that query argument is ignored, but in 
> theory, you could inspect that query argument and have the return value 
> depend on it somehow. The final query will end up being a conjunction of 
> the original query and the return value of the common filter function.
>
> Also, note that the argument of the common filter function (whether a 
> lambda function or otherwise) does not have to be "query" -- that is just a 
> convention to remind you that the original 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 = *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 the filter is to copy the code without 
>> understanding 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 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.


[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 the filter is to copy the code without 
understanding 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 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.