Beispiel #1
0
 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)
Beispiel #2
0
 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)