From d9e6fa389d1a14a151c9b0ef82a858e755141dab Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Sat, 15 Nov 2014 23:10:32 +0100 Subject: [PATCH] Fixing fachschaftentool --- application.py | 7 +++++++ templates/fachschaft.tex | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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()) diff --git a/templates/fachschaft.tex b/templates/fachschaft.tex index 723aed0..8362496 100644 --- a/templates/fachschaft.tex +++ b/templates/fachschaft.tex @@ -10,10 +10,10 @@ \end{tabular} & \rlap{\smash{\raisebox{-18mm}{\includegraphics[width=2cm]{kiflogo}}}}\\ &\multicolumn{2}{l}{\begin{tabular}{l} - \textbf{ {{fsorgan}} } \\ + \textbf{ {{fachschaft.organ}} } \\ vertritt {{fachschaft.vertreten}} Studenierende \\ {{fachschaft.organisation}}\\ - {{fachschaft.aktive}} Aktive + {{fachschaft.fachschaftler}} Aktive \end{tabular}} \\\\ &\multicolumn{2}{l}{ \begin{tabular}{lll} -- 2.39.2