def __init__(self,controller,db): """Initialize class for all EmailModels @param controller: The parent EmailController @type controller: L{Controller} @param db: path to database @type db: String """ Model.__init__(self,controller,db) self.controller = controller
def __init__(self,controller,db,templatesetsrepo,templatesetspath): ''' Create TemplatesetModel @param controller: parent Templateset controller @type controller: L{TemplatesetController} @param db: path to database @type db: String @param templatesetsrepo: Online path to repo of templatesets @type templatesetsrepo: String @param templatesetspath: Local path to directory of templatesets @type templatesetspath: String ''' Model.__init__(self,controller,db) self.templatesetsrepo = templatesetsrepo self.templatesetspath = templatesetspath