Hi All,

I'm trying to get working the slice in the subject that are in
web2pyslices.com[1] but it's something wrong with my code that I still
can't see and is breaking the view.
The widget works well for me if I use the same code as show in
web2pyslice (aka 'copy&paste'), but does not work with my model. I put
the widget's code in 'db.py' and my tables are on 'db_wizard.py[2]'.
The instance of the widget it's also in 'db_wizard.py'.

It says 'Key Error' but I can't justify why because I don't know yet
how to see this problem.

May worth to say that It also works if I remove 'db.t_categoria' from
line 110 in [2], as:

(...)
cascade = CascadingSelect(db.t_subcategoria,db.t_articulo)
(...)

LINKS:

[1] http://web2pyslices.com/main/slices/take_slice/85
[2] http://ompldr.org/vNzhnMg

The model has no problem without the widget.
What am I doing wrong?

Very thanks in advance for your help and time on this.

Reply via email to