[web2py] Re: OFF Topic - Tech for the frontend - Elm ???

2017-09-28 Thread António Ramos
i meant sharing :) 2017-09-28 16:58 GMT+01:00 António Ramos : > > Just charing and collecting some toughts... > Anyone knows about ELM ? > > I Like vue a lot, especially after all the Angular 1 to angular 2 RIP > event... > But ELM seems simpler and cleaner and more

[web2py] OFF Topic - Tech for the frontend - Elm ???

2017-09-28 Thread António Ramos
Just charing and collecting some toughts... Anyone knows about ELM ? I Like vue a lot, especially after all the Angular 1 to angular 2 RIP event... But ELM seems simpler and cleaner and more functional... http://elm-lang.org/examples regards -- Resources: - http://web2py.com -

[web2py] Re: DAL question db(db.table.id>0,db.table.field=='x').select()

2017-09-28 Thread Anthony
On Thursday, September 28, 2017 at 4:36:28 AM UTC-4, Ramos wrote: > > would it be more natural > > db(db.table.id>0,db.table.field=='x').select() > First, it's not clear whether those queries would be joined with & or |. Second, because of that, we would still need to use the alternative syntax

[web2py] Re: how to keep response.headers after redirect

2017-09-28 Thread Boyang Li
Just a follow-up questions here: When I try to use the redirect function raise HTTP(303,location=URL(...),**request.headers) to redirect to an external app, my external app cannot find the redirected authorization header by accessing request.env.HTTP_AUTHORIZATION. Seems like the

[web2py] Re: how to keep response.headers after redirect

2017-09-28 Thread Anthony
On Thursday, September 28, 2017 at 11:24:48 AM UTC-4, Boyang Li wrote: > > Just a follow-up questions here: > > When I try to use the redirect function raise > HTTP(303,location=URL(...),**request.headers) to redirect to an external > app, > my external app cannot find the redirected

[web2py] login strange( or not ) behaviour http/https

2017-09-28 Thread António Ramos
Hello i noticed that if i logged via https and then try to change the url to http i have to log again but until i go back to https and logout i cannot login with the other protocol. The reverse is also true from http to https. Is this a web2py thing ? Regard -- Resources: -

[web2py] Re: Mac OSX server startup files

2017-09-28 Thread 'jim kaubisch' via web2py-users
Hi, I want/need to install web2py on macOS Server. The instructions below seem pretty clear. However, they were written 6+ years ago and macOS , macOS Server and web2py all have evolved since then. Before putting effort into trying the instructions, I'd greatly appreciate knowing - Does

[web2py] Re: Mac OSX server startup files

2017-09-28 Thread 黄祥
just test to create the service for web2py that running from source, status worked (start, stop and restart), pls change the path with your web2py path: e.g. touch ~/Downloads/web2py chmod +x ~/Downloads/web2py vi ~/Downloads/web2py #!/bin/sh . /etc/rc.common StartService( ) { ConsoleMessage

[web2py] Re: Mac OSX server startup files

2017-09-28 Thread 黄祥
i think the best practice is using web2py source, put it on any directory and create the startup script like shown above. just change the path of /Applications/web2py.app/Contents/MacOS/web2py into any directory you put your web2py folder e.g. source /site/bin/activate # if you plan to put

[web2py] Re: Mac OSX server startup files

2017-09-28 Thread Dave S
On Thursday, September 28, 2017 at 3:22:08 PM UTC-7, jim kaubisch wrote: > > Hi, > > I want/need to install web2py on macOS Server. > The instructions below seem pretty clear. However, they were written 6+ > years ago and macOS , macOS Server and web2py all have evolved since then. > > Before

[web2py] Re: Rocket logs and server crash (upload focus)

2017-09-28 Thread Dave S
On Sunday, September 24, 2017 at 2:49:56 PM UTC-7, Dave S wrote: > > > > On Friday, September 22, 2017 at 11:50:15 PM UTC-7, Dave S wrote: >> >> >> >> On Friday, September 1, 2017 at 4:07:33 PM UTC-7, Dave S wrote: >>> >>> [...] >>> >> >> >>> (This is the same system that isn't fully happy

[web2py] Re: Force load an injected LOAD(ajax=True) helper

2017-09-28 Thread Anthony
In Javascript, you can call: $.web2py.component('{{=URL(...)}}', 'my_component') where 'my_component' is the id of the component div. You can use the LOAD helper to generate the div (with LOAD(..., target='my_component')), or just create an empty div with that id. Anthony On Thursday,

[web2py] pool.imap inside module causes errors

2017-09-28 Thread Piotr Dittwald
Dear All, Iwrite applications that in module makes multiprocessing computations. to du so, I run python multiprocessing library with pool.imap loop. However, when more than one users uses the application simultaneously, I get ValueError: semaphore or lock released too many times according to

[web2py] Force load an injected LOAD(ajax=True) helper

2017-09-28 Thread 'Yan Wong' via web2py-users
I have a LOAD() helper in a view, but that view itself gets loaded into my main page using the jQuery load() function, after a user interaction. That means the standard web2py events aren't attached to the LOAD() helper, and it is just permanently displayed as "loading...". Is there some

[web2py] Google AMP - benefits with web2py?

2017-09-28 Thread lyn2py
Hello guys! Just stumbled upon something. Google released "AMP" that will reduce page load time if you add some syntax to HTML. It is also optimised for mobile. An introduction article here: https://www.shopify.com/partners/blog/how-google-s-amp-project-is-changing-the-mobile-web The official

Re: [web2py] form replacing elements

2017-09-28 Thread Dave S
On Thursday, September 28, 2017 at 4:23:21 AM UTC-7, Pierre wrote: > > worked !! > > thanks Dave. > > what's next we should try ? > > It's hard to top that, so give me some time to think about it. /dps > Le mercredi 27 septembre 2017 03:26:56 UTC+2, Dave S a écrit : >> >> >> >> On

[web2py] Appadmin Database db select loses buttons

2017-09-28 Thread Dave S
I was using appadmin to import data into a table (because sometimes it's easier to do CSV offline than fill in a form), and accidentally got the rows in twice. Ok, no biggie, use the same page to delete the extras. That works, but then my import button disappears. The export button is

[web2py] Re: most simple way to change the "page=" parameter in grids

2017-09-28 Thread Thomas Wimmer
Thanks Anthony, i try and i try again. At least you encourage me! -- 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] form replacing elements

2017-09-28 Thread Pierre
worked !! thanks Dave. what's next we should try ? Le mercredi 27 septembre 2017 03:26:56 UTC+2, Dave S a écrit : > > > > On Tuesday, September 26, 2017 at 2:58:02 PM UTC-7, Pierre wrote: >> >> I tried to tame a raccoon and it didn't work. :( >> >> > What's the python signature of a

[web2py] DAL question db(db.table.id>0,db.table.field=='x').select()

2017-09-28 Thread António Ramos
would it be more natural db(db.table.id>0,db.table.field=='x').select() instead of DAL db((db.table.id>0)&(db.table.field=='x')).select() Regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -