X-Git-Url: https://git.siccegge.de//index.cgi?p=fachschaftentool.git;a=blobdiff_plain;f=application.py;fp=application.py;h=3761ba343c9fed02391ca4a6273f0d35e7def773;hp=1e0fcd890c1f445e51528a2fbbc7547943334ce0;hb=d9e6fa389d1a14a151c9b0ef82a858e755141dab;hpb=9896e94738124919862e1053d72587fd3ea0a714 diff --git a/application.py b/application.py index 1e0fcd8..3761ba3 100644 --- a/application.py +++ b/application.py @@ -108,6 +108,13 @@ def download(): 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())