def printtemplate(self, albums): from TemplateHandler import TemplateHandler t = TemplateHandler() t.loadtemplate() vd = { 'albums' : self.albums, } logging.debug('! vd: %s' % str(vd)) return t.printfilledtemplate(vd)
def printtemplate(self, colour, afile, vfile): from TemplateHandler import TemplateHandler t = TemplateHandler(afile,vfile) t.loadtemplate() vd = { 'albums' : self.albums, 'videos' : self.videos, 'colour' : colour } logging.debug('! vd: %s' % str(vd)) return t.printfilledtemplate(vd)