def __init__(self): conn = MySQLdb.connect (host = "localhost", user = "******", passwd = "forestman", db = "forestman") ForestManPage.__init__(self) TableDrawer.__init__(self,conn) unitidlooker = UnitIdLooker(conn) taskgroupidlooker = TaskGroupIdLooker(conn) self.taskcreator=TaskCreator(conn) self.fields = [[_("Task Id"),2,"TaskId"], [_("Description"),0,"Description"], [_("Task Group"),0,"TaskGroup",taskgroupidlooker], [_("Unit"),0,"Unit",unitidlooker], [_("Min Age"),0,"AgeMin"], [_("Max Age"),0,"AgeMax"]] self.idfield="TaskId"
def actions(self): return ForestManPage.actions(self) + TableDrawer.actions(self)