예제 #1
0
	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
예제 #2
0
	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