I'm adapting the select_or_add widget from web2py slices so that it can be 
packaged as a plugin. In that process I'm moving the business logic from a 
model file into a custom module. But this line is throwing an error that I 
can't fix:

form_loader_div = DIV(LOAD(c = self.controller, f = self.function, args = 
add_args, ajax = True), _id = my_select_id + "_dialog-form", _title = 
self.form_title)

The error reads: 'NoneType object is not callable'.

I've tested each of the variables, and all of them have appropriate string 
content. The DIV helper is also working fine. So I think the problem is the 
LOAD helper. I've imported it like this:

from gluon.rewrite import load
LOAD = load()

But the error persists. Am I importing LOAD improperly? Any other ideas?

Reply via email to