[web2py] Re: redirect an upload

2017-06-12 Thread Dave S
[continuing the subthread on broken pipes] On Friday, June 2, 2017 at 6:11:05 PM UTC-7, Dave S muttered and muttered: > A winnders client, using wininet, just keeps sending to port 80. >>> >> I'm trying to get tcpdump to tell me if the redirect is sent; my first >>> attempts don't see it.

[web2py] Re: query re grid signature

2017-06-12 Thread Peter
That sorted it Stefan - Thanks ! (one more thing to remember when I'm migrating the app to the cloud or I might just leave it as it as doesn't seem to get in the way of anything). Regards Peter On Tuesday, 13 June 2017 02:16:25 UTC+1, 黄祥 wrote: > > i think it's normal, seems you didn't put

[web2py] Re: query re grid signature

2017-06-12 Thread 黄祥
i think it's normal, seems you didn't put user_signature=False during define SQLFORM.grid (the default and recommended user_signature=True) for session_secure(), i think it's not related with user_signature, it's just set the session cookie to be secure cookie and ensure web app using https.

[web2py] Re: contact form with attachments

2017-06-12 Thread Dave S
On Saturday, June 10, 2017 at 5:56:19 AM UTC-7, Diego Tostes wrote: > > Hi, > > how can i send to a controller the attachment file from a html form in my > view? > > Rgds > > Diego > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] query re grid signature

2017-06-12 Thread Peter
This comes up in the url for a page with a grid... *default/apply_payment_to_multiple?_signature=8f626b099c6cd28faa2a6e91c8b86e5ab2d3f2ce* The '_signature' is something I have not seen before and maybe its something I accidentally caused. The book says When generating a URL, you have the

[web2py] Re: Trying to use a variable as a field name in a table insert

2017-06-12 Thread Peter
> I don't think I said anything was "non pythonic" (I identified some *invalid > *code -- but that code literally doesn't work at all, it is not merely > non-Pythonic). > The above code was my suggested (working) alternative, and I think the use > of dictionary unpacking would be considered

Re: [web2py] Re: Future of web2py

2017-06-12 Thread Richard Vézina
Massimo's has propose an example with ractive JS call W3 long time ago which show case basically what you ask for... Look web2p/W3 or massimo/W3 on github... Richard On Mon, Jun 12, 2017 at 2:59 PM, Brendan Barnwell wrote: > You can put anything that would go on a full page

Re: [web2py] Re: web2py 2.15.1

2017-06-12 Thread Richard Vézina
Here : https://github.com/web2py/web2py/commit/0205594f0853680e7c548dd0c506640958e36f1b Just go to : welcome/default/test_flatpickr, a dummy form with the 3 field types date, datetime, time demo Meaningful changes are mostly at the top and the bottom of diff... Remain to manger i18n and figure

[web2py] Re: Trying to use a variable as a field name in a table insert

2017-06-12 Thread Anthony
On Monday, June 12, 2017 at 2:11:12 PM UTC-4, Peter wrote: > > > Re: > What's wrong with this approach > db.payment_allocations.insert(**{'payment_ref': payment.id, > ref_field: record.id, > 'amount_allocated': allocation}) > > To

Re: [web2py] Re: web2py 2.15.1

2017-06-12 Thread Richard Vézina
Ok, I figure this out, I mean it work with only change into web2py.js and web2py_ajax.html with web2py-master (up to date)... I should remove reference to web2py_ajax.js in this comment and replace it with web2py.js I guess?? Have you any input regarding the previous message about flatpickr

Re: [web2py] Re: web2py 2.15.1

2017-06-12 Thread Anthony
On Monday, June 12, 2017 at 2:28:21 PM UTC-4, Richard wrote: > > Also, I am not sure what happen with web2py_ajax.*js *I found reference > to it in web2py_ajax*.html* > You must have a very old version -- web2py_ajax.js was changed to web2py.js a long time ago. Anthony -- Resources: -

[web2py] Re: Future of web2py

2017-06-12 Thread Anthony
On Monday, June 12, 2017 at 2:59:42 PM UTC-4, Brendan Barnwell wrote: > > You can put anything that would go on a full page (including any form) in >> an Ajax component. Forms in components are submitted via Ajax (they are no >> less "real" than forms loaded in full pages), and only the

[web2py] Re: Future of web2py

2017-06-12 Thread Brendan Barnwell
> > You can put anything that would go on a full page (including any form) in > an Ajax component. Forms in components are submitted via Ajax (they are no > less "real" than forms loaded in full pages), and only the component itself > refreshes upon submission. It is not quite clear what else

Re: [web2py] Re: web2py 2.15.1

2017-06-12 Thread Richard Vézina
Also, I am not sure what happen with web2py_ajax.*js *I found reference to it in web2py_ajax*.html* quote: // These variables are used by the web2py_ajax_init function in web2py_ajax.js (which is loaded below). But it seems to have been removed?? I try to search the list and github for

Re: [web2py] Re: web2py 2.15.1

2017-06-12 Thread Richard Vézina
I made some progress... It relatively straigh foward to replace Calendar... I am reading IS_TIME() validator which handle time with second or not... I am not sure how I could translate that with time picker from flatpicker which use enableSeconds boolean flag to determine if it requires second or

[web2py] Re: Trying to use a variable as a field name in a table insert

2017-06-12 Thread Peter
Re: What's wrong with this approach db.payment_allocations.insert(**{'payment_ref': payment.id, ref_field: record.id, 'amount_allocated': allocation}) To be honest I was trying to up my game with a bit of abstraction but haven't

[web2py] Re: checking pg_stat_activity shows a lot of "SET standard_conforming_strings=on;" idle in transaction

2017-06-12 Thread Mick
No problems that I can tell, but they seem to be persistent, I have 5 databases and 5 idle transactions "SET standard conforming strings=on;" that don't seem to be recycled, every time I check pg_stat_activity they're there. I have other applications accessing the database, and I'm trying to

[web2py] Re: SQLFORM.grid filtering with local and external table

2017-06-12 Thread J-Michel Angers
Oh Yes ! Instead of an algorythm with variables and loops and I saw this "belongs", but I hadn't imagined that it was the as the "IN" of a select... Thank you very much. I appologized, not to understand this myself :):):) -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Re: Future of web2py

2017-06-12 Thread António Ramos
+1 agreed. Lets remove some pressure from Massimo... Too much noise can harm the baby... 2017-06-12 15:03 GMT+01:00 Richard Vézina : > Karoly, > > 1) Massimo had already mention that web2py will be supported by the core > team. You should know that core team

[web2py] Re: SQLFORM.grid filtering with local and external table

2017-06-12 Thread Anthony
You probably want .belongs() with a nested ._select(), as shown here: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#belongs Anthony On Monday, June 12, 2017 at 10:27:43 AM UTC-4, J-Michel Angers wrote: > > Hi, > My app goes forward, I have plaisure to develop with

[web2py] SQLFORM.grid filtering with local and external table

2017-06-12 Thread J-Michel Angers
Hi, My app goes forward, I have plaisure to develop with web2py. But sometimes I don't find myself the solution for very specific search. My app works well now, I can fill a request, add/remove parts, add/remove attached, calculate price, send this request to collect signatures Now I try to

[web2py] Re: Creating a dropdown form for linked tables

2017-06-12 Thread isi_jca
Hi!!! Look at in this link http://www.web2pyslices.com/slice/show/1410/cascading-drop-down-lists -- 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

Re: [web2py] Re: Future of web2py

2017-06-12 Thread Richard Vézina
Karoly, 1) Massimo had already mention that web2py will be supported by the core team. You should know that core team much more involve in the maintenance and enhancement of web2py lately than Massimo is. I am rely confident in the maintenance of web2py for a fading out period if web3py will get

Re: [web2py] Re: Future of web2py

2017-06-12 Thread Richard Vézina
Please stop making unjustify pressure to the release of web3py... I greatly prefer that Massimo's take as much as he need time to design it new framework. It will prevent design flaws that would other than that be leaved in and make things more difficult to maintain in the future and require major

[web2py] Re: Future of web2py

2017-06-12 Thread Anthony
> > >1. *Better token based authentication for apis* > > web2py Auth supports JWT tokens. > >1. Support of GET and POST requests on login like flask does. > > What does this mean? Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Future of web2py

2017-06-12 Thread Oasis Agano
If possible can we also have this in either *web2py 2.15* or *web3py* or both: 1. *Better applications Unit testing*(Not the framework test) methods and enough documentation 2. Better Oauth2 support 3. *Better token based authentication for apis* 4. Support of GET and POST

[web2py] Re: How to use SparkPost

2017-06-12 Thread Mirek Zvolský
1) pip install sparkpost 2) I have this inside my private/appconfig.ini: ; smtp address and credentials [smtp] server = smtp.sparkpostmail.com:587 sender = mojekniho...@mojeknihovna.eu login = SMTP_Injection:4dxxx92 3) I have the file modules/mail_send.py with

Re: [web2py] Re: Future of web2py

2017-06-12 Thread Karoly Kantor
For people to feel they have an understanding on the web2py roadmap and trust in in its future, i think it would be important to get clear answers to the following questions: 1. When "web3py" is released, what will happen to web2py? Will it come to an end of life, or will the two frameworks