def __init__(self, databaseconnection): """Initialise TaskGroupCreator. Takes a DB-API Connection object""" import TableConstructors SimpleTableAdapter.__init__(self,databaseconnection,TableConstructors.createTaskGroups)
def __init__(self, databaseconnection): """Initialise PlanningList. Takes a DB-API Connection object""" import TableConstructors SimpleTableAdapter.__init__(self,databaseconnection,TableConstructors.createPlanningItems)
def fillemptyfields(self,data): self.fill(data,'Quantity') self.fill(data,'YieldFac',1) self.fill(data,'EstPrice') self.fill(data,'Completed','N') SimpleTableAdapter.fillemptyfields(self,data)
def fillemptyfields(self, data): self.fill(data, "Address", "") self.fill(data, "Location", "") self.fill(data, "CUIT", "") self.fill(data, "Phone", "") SimpleTableAdapter.fillemptyfields(self, data)