info.size = len(fdata)
tar.addfile(info, StringIO.StringIO(fdata))
+ # theme
+ for elem in os.listdir(os.path.join(os.path.dirname(__file__), 'templates', 'beamertheme')):
+ fdata = file(os.path.join(os.path.dirname(__file__), 'templates', 'beamertheme', elem)).read()
+ info = tarfile.TarInfo(name=elem)
+ info.size = len(fdata)
+ tar.addfile(info, StringIO.StringIO(fdata))
+
tar.close()
responseobj=make_response(data.getvalue())