[web2py] Re: scheduler -- tracking the last time

2016-02-03 Thread Dave S
On Wednesday, February 3, 2016 at 1:10:37 AM UTC-8, Niphlod wrote: > > it's like you execute a task in a request coming from a new user every > time. if you need to persist something, use a record in the db. > I'm catching on to that. Trying to queue a task from a shell doesn't seem useful. T

[web2py] Re: Session variable lost after redirect on PythonAnywhere but NOT locally

2016-02-03 Thread Anthony
Using the browser developer tools, on the subsequent navigations, see if (a) the browser is sending the session cookie to the server and (b) the server is sending *the same* session cookie back. If you are transitioning from http to https and have either set session.secure() or request.requires

[web2py] Session variable lost after redirect on PythonAnywhere but NOT locally

2016-02-03 Thread Dan
I use a session variable to pass some info with a redirect: session.OrigText = XML(str(OrigText)) redirect(URL('SearchResultsOrigText')) It arrives at the new URL / page / view - SearchResultsOrigText - and works Ok. But when from that new URL - SearchResultsOrigText- I navigate away (

[web2py] Re: Login App engine

2016-02-03 Thread Charles tenorio
is ok now I changed line code! thanks for helpe Field('user_id', 'reference auth_user', default=auth.user_id) Field('user_id', 'reference auth_user', default=auth.user_id, readable=True, writable=False) Em terça-feira, 26 de janeiro de 2016 15:50:34 UTC-3, Charles tenorio escreveu: > > goo

[web2py] Re: daily scheduler task

2016-02-03 Thread Niphlod
it really doesn't change that much if it's bad code or good one, it's executed in web2py env that traps the exception. Unless you're overriding multiprocessing, datetime, etc etc etc (but this is just shooting really high with the fantasy) the whole scheduler would die (not just the task) but i

[web2py] Re: Edit layout of SQLFORM.grid (move Edit/View to left side of table)

2016-02-03 Thread Thomas Sitter
Sorry for the delayed response.. this works perfectly! On Wednesday, 27 January 2016 22:31:39 UTC-5, Anthony wrote: > > > SQLFORM.grid(..., buttons_placement='left') > > Anthony > > On Wednesday, January 27, 2016 at 9:18:16 PM UTC-5, Thomas Sitter wrote: >> >> Hello, >> >> I'm looking to move the

[web2py] Re: Login App engine

2016-02-03 Thread Charles tenorio
Hi Niphlod! work out what you said, thank you. I can now registers the USERS and login. can join us who the Registered User who did the operation. it all running app engine locally. But when I go up, I can only make the register of usr. Of this error in time to call the function that is to to

[web2py] Re: daily scheduler task

2016-02-03 Thread Alex
yeah, it's very unusual. This only happened a few times in the last 4 years for me. But one of the reasons is that it only occurs when the task raises an exception or runtime error. Usually my tasks run fine but a few times I deployed "bad" code with failed tasks. And when the task fails it's no

[web2py] Re: user registration flash message not returned

2016-02-03 Thread Anthony
If you do: form = auth() then you cannot call form.process(), as auth() automatically calls .process() itself. Also, the auth.register() method automatically redirects after processing, so the rest of your code will not be reached anyway. If you want to do something after registration, specify

[web2py] user registration flash message not returned

2016-02-03 Thread Yebach
Hello I cannot retrieve the session.flash message after user successfully registers my controler (default.py ) is the following def user(): if request.args(0)=='profile': #uporabnikov Id uid = auth.user_id #preberem podatke za tega userja iz obeh tabel

Re: [web2py] Re: autocomplete widget

2016-02-03 Thread Richard Vézina
autocomplete is there since web2py exist or almost I guess... It handy, but it slow and I prefer to use twitter typehead autocomplete, much more works but it much better... On Wed, Feb 3, 2016 at 7:00 AM, Pierre wrote: > works !!! > > very nice feature and very magic indeed > > > is it robust o

[web2py] Re: autocomplete widget

2016-02-03 Thread Pierre
works !!! very nice feature and very magic indeed is it robust or is it still experimental ? -- 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 rece

[web2py] Re: How to move Postgres apps?

2016-02-03 Thread Niphlod
the databases/ is needed if you need to do migrations. you can skip it only if you always use migrate=False in prod. On Wednesday, February 3, 2016 at 3:00:32 AM UTC+1, Alex Glaros wrote: > > is the correct method to do a "Pack Custom" without the "databases", then > send the rest to the new site

[web2py] Re: scheduler -- tracking the last time

2016-02-03 Thread Niphlod
it's like you execute a task in a request coming from a new user every time. if you need to persist something, use a record in the db. On Wednesday, February 3, 2016 at 7:24:07 AM UTC+1, Dave S wrote: > > > > On Sunday, January 31, 2016 at 4:13:07 AM UTC-8, Niphlod wrote: >> >> >> >> On Sunday, J