I think I found the answer and now feel stupid it was in the docs
http://turbogears.org/2.1/docs/main/Controllers.html#writing-controllers
probably the most important doc of turbogears.
I now have another problem instantiating this same widget. This is my
class with the widget
Any help would be appreceated.
class Club_Selector(ItemSelector):
def __init__(self,schools_id):
self.schools_id=schools_id
ItemSelector.__init__(self,divID='item_selector_div',
width=600,
url='/save',
fieldLabel='Clubs',
labelWidth=80,
fromData=[],
toData=[],
msWidth=200,
msHeight=200,
dataFields=['code','desc'],
valueField='code',
displayField='desc',
fromLegend='Available',
toLegend='Selected',
submitText='Save',
resetText='Reset')
which raises the following error:
ValueError: ItemSelector requires a divID!