def __init__(self, output=None, include_password=True): LMSExport.__init__(self) self.output = output self.xml = XMLWriter(output) self.xml.startDocument(encoding='UTF-8') self.rootEl = 'enterprise' self.DataSource = 'Cerebrum' self.include_password = include_password #self.cf_id = self.fronter.fronter_host # TODO: Get this somewhere else logger.debug("Fronterexport initialized")
def __init__(self, output=None): LMSExport.__init__(self) self.xml = XMLWriter(output) self.xml.startDocument(encoding="ISO-8859-1") self.xml.notationDecl( "enterprise", public_id="IMS Enterprise/LMS Interoperability DTD", system_id="http://www.fs.usit.uio.no/DTD/ims_epv1p1.dtd") self.rootEl = 'enterprise' self.DataSource = 'Cerebrum' logger.debug("ItsLearningexport initialized")