Work around that work actually is to define the widget in the controller :

move this from model to controller :
db.atable.field1.widget=multiselect_widget

Jonhy

On 2010-06-29 18:29, Jean-Guy wrote:
Hello,

I install multiselect plugin it works just fine...

http://web2pyslices.com/main/slices/take_slice/70

But I receive this error when I try to got on a record from the appadmin :

Error traceback

Traceback (most recent call last):
  File "/web2py/gluon/restricted.py", line 178, in restricted
    exec ccode in environment
File "/web2py/applications/app/controllers/appadmin.py", line 410, in <module>
  File "/web2py/gluon/globals.py", line 96, in <lambda>
    self._caller = lambda f: f()
File "/web2py/applications/app/controllers/appadmin.py", line 273, in update
    f='download', args=request.args[:1]))
  File "/web2py/gluon/sqlhtml.py", line 688, in __init__
    inp = field.widget(field, default)
File "/web2py/applications/app/models/plugins.py", line 11, in multiselect_widget
    inp = SQLFORM.widgets.options.widget(f,v)
  File "/web2py/gluon/sqlhtml.py", line 190, in widget
    % field
SyntaxError: widget cannot determine options of atable.field1

Jonhy

Reply via email to