Re: [web2py] Re: Weird behavior in sqlform / forms ...

2019-02-15 Thread Val K
I had a similar problem and I studied the source code that is pretty clear


On Friday, February 15, 2019 at 4:01:59 PM UTC+3, Ben Duncan wrote:
>
> Ok, thanks VAL, that did the trick ...
>
> Where do you go to find such neat little things?
>
> *Ben Duncan*
> DBA / Chief Software Architect 
> Mississippi State Supreme Court
> Electronic Filing Division
>
>
> On Thu, Feb 14, 2019 at 2:46 PM Ben Duncan  > wrote:
>
>> Ok, will give it a shot tomorrow. 
>> Yeah, I like to do things the long way. But I'm kinda restricted to 
>> getting this accounting app to match (look and feel)
>> of a late 1990's PERL based application (Federal PACER system based ...)
>>
>> It's what all the attorneys and court clerks are used to using in our 
>> state ...
>>
>> *Ben Duncan*
>> DBA / Chief Software Architect 
>> Mississippi State Supreme Court
>> Electronic Filing Division
>>
>>
>> On Thu, Feb 14, 2019 at 2:29 PM Val K > 
>> wrote:
>>
>>> It seems you  like handmade things;)
>>> I  don't see the closing tag -  
>>> Try to remove your handmade hidden field and place 
>>> {{ =form.hidden_fields() }}
>>>
>>> and  it should be 
>>> return dict(form=in_form)
>>> in the controller
>>>
>>>
>>>
>>>
>>> On Thursday, February 14, 2019 at 9:59:41 PM UTC+3, Ben Duncan wrote:

 Sure:

 But, it seems something is strange with firefox, closing the web 
 browser down and then opening it back up again, and it works the way it 
 should...

 Gess .. Is it always this weird / hard in the world of web 
 programming ?


 
 {{extend 'deflayout.html'}}
 {{include 'mectopline.html'}}

 >>>action="{{=URL()}}"
method="post"
autocomplete="off"
 >
 
 Input form

   
   Enter your User ID
   
   >>> style='width:100%;'>

 
   
   Password
   
   
 

 
   
   Remember Me
   
 

 
   
   
   >>>   style='padding-left: 10px ; padding-right:10px'>
   
 



 Submitted variables
 {{=BEAUTIFY(request.vars)}}

 

 I am moving around here ...
 
 Stuff a line ...
 
 More sir stuff a lot ...
 
 Eat MORE CHEESE AT MOE's
 
   
 ~
  
 END OF VIEW   
 ---
 *Ben Duncan*
 DBA / Chief Software Architect 
 Mississippi State Supreme Court
 Electronic Filing Division


 On Thu, Feb 14, 2019 at 12:52 PM Leonel Câmara  
 wrote:

> Can I see the rest of the view? It seems you're missing the form 
> hidden fields which have the token.
>
> -- 
> 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+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: Weird behavior in sqlform / forms ...

2019-02-15 Thread Ben Duncan
Ok, thanks VAL, that did the trick ...

Where do you go to find such neat little things?

*Ben Duncan*
DBA / Chief Software Architect
Mississippi State Supreme Court
Electronic Filing Division


On Thu, Feb 14, 2019 at 2:46 PM Ben Duncan  wrote:

> Ok, will give it a shot tomorrow.
> Yeah, I like to do things the long way. But I'm kinda restricted to
> getting this accounting app to match (look and feel)
> of a late 1990's PERL based application (Federal PACER system based ...)
>
> It's what all the attorneys and court clerks are used to using in our
> state ...
>
> *Ben Duncan*
> DBA / Chief Software Architect
> Mississippi State Supreme Court
> Electronic Filing Division
>
>
> On Thu, Feb 14, 2019 at 2:29 PM Val K  wrote:
>
>> It seems you  like handmade things;)
>> I  don't see the closing tag -  
>> Try to remove your handmade hidden field and place
>> {{ =form.hidden_fields() }}
>>
>> and  it should be
>> return dict(form=in_form)
>> in the controller
>>
>>
>>
>>
>> On Thursday, February 14, 2019 at 9:59:41 PM UTC+3, Ben Duncan wrote:
>>>
>>> Sure:
>>>
>>> But, it seems something is strange with firefox, closing the web browser
>>> down and then opening it back up again, and it works the way it should...
>>>
>>> Gess .. Is it always this weird / hard in the world of web
>>> programming ?
>>>
>>>
>>> 
>>> {{extend 'deflayout.html'}}
>>> {{include 'mectopline.html'}}
>>>
>>> >>action="{{=URL()}}"
>>>method="post"
>>>autocomplete="off"
>>> >
>>> 
>>> Input form
>>>
>>>   
>>>   Enter your User ID
>>>   
>>>   >> style='width:100%;'>
>>>
>>> 
>>>   
>>>   Password
>>>   
>>>   
>>> 
>>>
>>> 
>>>   
>>>   Remember Me
>>>   
>>> 
>>>
>>> 
>>>   
>>>   
>>>   >>   style='padding-left: 10px ; padding-right:10px'>
>>>   
>>> 
>>>
>>>
>>>
>>> Submitted variables
>>> {{=BEAUTIFY(request.vars)}}
>>>
>>> 
>>>
>>> I am moving around here ...
>>> 
>>> Stuff a line ...
>>> 
>>> More sir stuff a lot ...
>>> 
>>> Eat MORE CHEESE AT MOE's
>>> 
>>>   
>>> ~
>>>  END
>>> OF VIEW
>>> ---
>>> *Ben Duncan*
>>> DBA / Chief Software Architect
>>> Mississippi State Supreme Court
>>> Electronic Filing Division
>>>
>>>
>>> On Thu, Feb 14, 2019 at 12:52 PM Leonel Câmara 
>>> wrote:
>>>
 Can I see the rest of the view? It seems you're missing the form hidden
 fields which have the token.

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

-- 
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: Weird behavior in sqlform / forms ...

2019-02-14 Thread Ben Duncan
Ok, will give it a shot tomorrow.
Yeah, I like to do things the long way. But I'm kinda restricted to getting
this accounting app to match (look and feel)
of a late 1990's PERL based application (Federal PACER system based ...)

It's what all the attorneys and court clerks are used to using in our state
...

*Ben Duncan*
DBA / Chief Software Architect
Mississippi State Supreme Court
Electronic Filing Division


On Thu, Feb 14, 2019 at 2:29 PM Val K  wrote:

> It seems you  like handmade things;)
> I  don't see the closing tag -  
> Try to remove your handmade hidden field and place
> {{ =form.hidden_fields() }}
>
> and  it should be
> return dict(form=in_form)
> in the controller
>
>
>
>
> On Thursday, February 14, 2019 at 9:59:41 PM UTC+3, Ben Duncan wrote:
>>
>> Sure:
>>
>> But, it seems something is strange with firefox, closing the web browser
>> down and then opening it back up again, and it works the way it should...
>>
>> Gess .. Is it always this weird / hard in the world of web
>> programming ?
>>
>>
>> 
>> {{extend 'deflayout.html'}}
>> {{include 'mectopline.html'}}
>>
>> >action="{{=URL()}}"
>>method="post"
>>autocomplete="off"
>> >
>> 
>> Input form
>>
>>   
>>   Enter your User ID
>>   
>>   
>>
>> 
>>   
>>   Password
>>   
>>   
>> 
>>
>> 
>>   
>>   Remember Me
>>   
>> 
>>
>> 
>>   
>>   
>>   >   style='padding-left: 10px ; padding-right:10px'>
>>   
>> 
>>
>>
>>
>> Submitted variables
>> {{=BEAUTIFY(request.vars)}}
>>
>> 
>>
>> I am moving around here ...
>> 
>> Stuff a line ...
>> 
>> More sir stuff a lot ...
>> 
>> Eat MORE CHEESE AT MOE's
>> 
>>   
>> ~
>>  END
>> OF VIEW
>> ---
>> *Ben Duncan*
>> DBA / Chief Software Architect
>> Mississippi State Supreme Court
>> Electronic Filing Division
>>
>>
>> On Thu, Feb 14, 2019 at 12:52 PM Leonel Câmara 
>> wrote:
>>
>>> Can I see the rest of the view? It seems you're missing the form hidden
>>> fields which have the token.
>>>
>>> --
>>> 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.
>

-- 
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: Weird behavior in sqlform / forms ...

2019-02-14 Thread Val K
It seems you  like handmade things;)
I  don't see the closing tag -  
Try to remove your handmade hidden field and place 
{{ =form.hidden_fields() }}

and  it should be 
return dict(form=in_form)
in the controller




On Thursday, February 14, 2019 at 9:59:41 PM UTC+3, Ben Duncan wrote:
>
> Sure:
>
> But, it seems something is strange with firefox, closing the web browser 
> down and then opening it back up again, and it works the way it should...
>
> Gess .. Is it always this weird / hard in the world of web programming 
> ?
>
>
> 
> {{extend 'deflayout.html'}}
> {{include 'mectopline.html'}}
>
> action="{{=URL()}}"
>method="post"
>autocomplete="off"
> >
> 
> Input form
>
>   
>   Enter your User ID
>   
>   
>
> 
>   
>   Password
>   
>   
> 
>
> 
>   
>   Remember Me
>   
> 
>
> 
>   
>   
>  style='padding-left: 10px ; padding-right:10px'>
>   
> 
>
>
>
> Submitted variables
> {{=BEAUTIFY(request.vars)}}
>
> 
>
> I am moving around here ...
> 
> Stuff a line ...
> 
> More sir stuff a lot ...
> 
> Eat MORE CHEESE AT MOE's
> 
>   
> ~
>  END 
> OF VIEW   
> ---
> *Ben Duncan*
> DBA / Chief Software Architect 
> Mississippi State Supreme Court
> Electronic Filing Division
>
>
> On Thu, Feb 14, 2019 at 12:52 PM Leonel Câmara  > wrote:
>
>> Can I see the rest of the view? It seems you're missing the form hidden 
>> fields which have the token.
>>
>> -- 
>> 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: Weird behavior in sqlform / forms ...

2019-02-14 Thread Ben Duncan
Sure:

But, it seems something is strange with firefox, closing the web browser
down and then opening it back up again, and it works the way it should...

Gess .. Is it always this weird / hard in the world of web programming ?


{{extend 'deflayout.html'}}
{{include 'mectopline.html'}}



Input form

  
  Enter your User ID
  
  


  
  Password
  
  



  
  Remember Me
  



  
  
  
  




Submitted variables
{{=BEAUTIFY(request.vars)}}



I am moving around here ...

Stuff a line ...

More sir stuff a lot ...

Eat MORE CHEESE AT MOE's

  
~
 END OF
VIEW
---
*Ben Duncan*
DBA / Chief Software Architect
Mississippi State Supreme Court
Electronic Filing Division


On Thu, Feb 14, 2019 at 12:52 PM Leonel Câmara 
wrote:

> Can I see the rest of the view? It seems you're missing the form hidden
> fields which have the token.
>
> --
> 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.
>

-- 
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: Weird behavior in sqlform / forms ...

2019-02-14 Thread Leonel Câmara
Can I see the rest of the view? It seems you're missing the form hidden 
fields which have the token.

-- 
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: Weird behavior in sqlform / forms ...

2019-02-14 Thread Ben Duncan
Yes, in the view:

  
  
  
  


Let me check my config for the CSRF token ...

*Ben Duncan*
DBA / Chief Software Architect
Mississippi State Supreme Court
Electronic Filing Division


On Thu, Feb 14, 2019 at 12:12 PM Leonel Câmara 
wrote:

> How are you submitting this form? It doesn't seem to be using POST, it
> seems you're just requesting a new page with the form using GET. In case
> that's not what's happening the other possible cause is that you have a
> session.forget somewhere or something is wrong with your cookies and the
> form thinks you don't have a valid CSRF token.
>
> --
> 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.
>

-- 
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: Weird behavior in sqlform / forms ...

2019-02-14 Thread Leonel Câmara
How are you submitting this form? It doesn't seem to be using POST, it 
seems you're just requesting a new page with the form using GET. In case 
that's not what's happening the other possible cause is that you have a 
session.forget somewhere or something is wrong with your cookies and the 
form thinks you don't have a valid CSRF token.

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