Re: [web2py] "Lazy Options" plugin

2014-02-05 Thread Richard Vézina
I just fix this issue :

https://github.com/BuhtigithuB/sqlabs/blob/patch-1/modules/plugin_lazy_options_widget.py

See around 108...

Better late then never!!

:)

Richard


On Tue, Sep 18, 2012 at 9:49 AM, Richard Vézina  wrote:

> Will need some code!
>
> Richard
>
>
> On Mon, Sep 17, 2012 at 6:48 PM, lyn2py  wrote:
>
>> Hi!
>>
>> I'm testing the lazy options plugin again, the website is here:
>> http://dev.s-cubism.com/plugin_lazy_options_widget
>>
>> And I find that if 'form has errors', the selected value gets reset
>> instead of being remembered (all the other fields get remembered).
>> The code for form has errors is the simple code from web2py book:
>> form=SQLFORM(db.table)
>> if form.process().accepted:
>> response.flash = 'success'
>> elif form.errors:
>> response.flash = 'form has errors'
>>
>>
>> How do I get the widget to behave like it remembers the selected option?
>>
>>  --
>>
>>
>>
>>
>
>

-- 
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/groups/opt_out.


Re: [web2py] "Lazy Options" plugin

2012-09-18 Thread Richard Vézina
Will need some code!

Richard

On Mon, Sep 17, 2012 at 6:48 PM, lyn2py  wrote:

> Hi!
>
> I'm testing the lazy options plugin again, the website is here:
> http://dev.s-cubism.com/plugin_lazy_options_widget
>
> And I find that if 'form has errors', the selected value gets reset
> instead of being remembered (all the other fields get remembered).
> The code for form has errors is the simple code from web2py book:
> form=SQLFORM(db.table)
> if form.process().accepted:
> response.flash = 'success'
> elif form.errors:
> response.flash = 'form has errors'
>
>
> How do I get the widget to behave like it remembers the selected option?
>
>  --
>
>
>
>

-- 





[web2py] "Lazy Options" plugin

2012-09-17 Thread lyn2py
Hi!

I'm testing the lazy options plugin again, the website is here:
http://dev.s-cubism.com/plugin_lazy_options_widget

And I find that if 'form has errors', the selected value gets reset instead 
of being remembered (all the other fields get remembered).
The code for form has errors is the simple code from web2py book:
form=SQLFORM(db.table)
if form.process().accepted:
response.flash = 'success'
elif form.errors:
response.flash = 'form has errors'


How do I get the widget to behave like it remembers the selected option?

--