[web2py] Getting different home pages for my App on python anywhere!!!

2017-05-09 Thread mostwanted
Hi guys, i developed an APP in web2py and hosted it with python anywhere, now when i go to the URL i seem to be getting 2 different home pages for my sesowa App.* http://sesowa.pythonanywhere.com/ * URL is giving a different page and the *http://sesowa.pythona

Re: [web2py] Re: Manual error regarding "hidden" fields

2017-05-09 Thread Nico Zanferrari
Well, if you have found this one - really hidden in the manual - I think that mastering github is a piece of cake ;-) Cheers, Nico Il 09 Mag 2017 20:52, "Dave S" ha scritto: > > > On Tuesday, May 9, 2017 at 11:08:22 AM UTC-7, Joe Barnhart wrote: >> >> It's embarrassing to admit, but I'm really

[web2py] Re: Manual error regarding "hidden" fields

2017-05-09 Thread Dave S
On Tuesday, May 9, 2017 at 11:08:22 AM UTC-7, Joe Barnhart wrote: > > It's embarrassing to admit, but I'm really clueless when it comes to > collaborating using git. I had barely mastered hg before the change and > I'm only able to figure out basic checkout-checkin stuff with git or I'd > con

[web2py] Re: Manual error regarding "hidden" fields

2017-05-09 Thread Joe Barnhart
It's embarrassing to admit, but I'm really clueless when it comes to collaborating using git. I had barely mastered hg before the change and I'm only able to figure out basic checkout-checkin stuff with git or I'd contribute more. I'm more of an old-school programmer who cut his teeth on cvs.

[web2py] Re: Validate_and_insert fails because "id" has no value

2017-05-09 Thread Joe Barnhart
You are correct sir. The table has three "reference" fields and their default validators were the unforgiving type. Since this was a special case in which it was OK if the references were missing, I just nuked the validators before doing the "validate_and_insert" by setting the "requires=Non

[web2py] Re: Manual error regarding "hidden" fields

2017-05-09 Thread Anthony
Good point. Maybe submit a PR to the book repo. On Monday, May 8, 2017 at 5:07:01 PM UTC-4, Joe Barnhart wrote: > > In the section about SQLFORM, the description of hidden fields is > demonstrably wrong. The code example is: > > form.vars.a = request.vars.a > form = SQLFORM(..., hidden=dict(a='b

[web2py] Re: Validate_and_insert fails because "id" has no value

2017-05-09 Thread Anthony
id fields do not get any validators by default, and if they did, it certainly would not be an IS_IN_DB validator (if anything, it would be IS_NOT_IN_DB, as id values must be unique). Can we see your table definition? Is it possible the problem is instead with a reference field, which by defaul

Re: [web2py] Re: flash message gets lost

2017-05-09 Thread Anthony
No, you should still set session.flash in your controller code. However, your view should have {{=response.flash}}, as the framework will move the value of session.flash to response.flash after the redirect. Also, as already noted, you cannot define form=auth() and then subsequently call form.p

[web2py] Re: [REMEMBER_ME] Not working

2017-05-09 Thread Anthony
On Tuesday, May 9, 2017 at 4:04:52 AM UTC-4, sunda.am...@gmail.com wrote: > > Anhtony, > > What i observe, is when i login with activing the 'remember me' radio box, > and then after when i logout, and want to login again, it doesnt remember > me , i need to write my mail and password again ... >

Re: [web2py] Re: flash message gets lost

2017-05-09 Thread Vid Ogris
Hello Form is defined as form = auth() Changing session.flash to response.flash still does not work after user This is my whole user code def user(): form = auth() if request.args(0)=='profile': #uporabnikov Id uid = auth.user_id #preberem podatke za tega user

Re: [web2py] Re: [REMEMBER_ME] Not working

2017-05-09 Thread sunda . amran
Hey, No it does not working with the welcome app also Le vendredi 5 mai 2017 21:32:43 UTC+2, Paolo Valleri a écrit : > > I've just tried welcome app with current master branch and 'remember me' > worked well. Would you test it as well? > > Paolo > > 2017-05-05 11:32 GMT+02:00 >: > >> Please

Re: [web2py] Re: [REMEMBER_ME] Not working

2017-05-09 Thread sunda . amran
Le vendredi 5 mai 2017 21:32:43 UTC+2, Paolo Valleri a écrit : > > I've just tried welcome app with current master branch and 'remember me' > worked well. Would you test it as well? > > Paolo > > 2017-05-05 11:32 GMT+02:00 >: > >> Please help me >> >> >> Le mercredi 3 mai 2017 17:14:10 UTC+2,

[web2py] Re: [REMEMBER_ME] Not working

2017-05-09 Thread sunda . amran
Anhtony, What i observe, is when i login with activing the 'remember me' radio box, and then after when i logout, and want to login again, it doesnt remember me , i need to write my mail and password again ... Thank you Le mardi 9 mai 2017 10:02:56 UTC+2, sunda...@gmail.com a écrit : > > Hello

[web2py] Re: [REMEMBER_ME] Not working

2017-05-09 Thread sunda . amran
Hello Anthony, i don't know where to check the expires attributs in the browser ... Thanks Le vendredi 5 mai 2017 22:50:56 UTC+2, Anthony a écrit : > > After you log in via the remember me option, check the session cookie in > the browser -- does it now have an "expires" attribute now? > > Anth