[web2py] Re: Custom validator apparently not being called

2010-07-17 Thread MikeEllis
After some more poking around with winpdb (a marvelously useful tool, IMO), it looks like the cleanest way to get the web2py mangled id of a form.custom.widget named 'foo' is: id = form.custom.widget.foo.['_id'] or equivalently, id = form.custom.widget['foo']['_id'] The following do *not* work: i

[web2py] Re: Custom validator apparently not being called

2010-07-16 Thread MikeEllis
Solved the problem, though I'm still not quite sure what was wrong to begin with. I did away with using a custom widget to install the ckeditor and handled it in the view instead: {{=form.custom.widget.edited}} CKEDITOR.replace("no_table_edited", { toolbar : 'Basic', });

[web2py] Re: Custom validator apparently not being called

2010-07-16 Thread mr.freeze
Do you get the same behavior when removing the ckeditor widget from the field? Your validator worked for me and the __call__ method was hit. On Jul 16, 5:07 pm, MikeEllis wrote: > I've got a controller that presents the user with a ckeditor field > that lets them use a limited set of html markup.