]> git.siccegge.de Git - fachschaftentool.git/blobdiff - application.py
Fixing fachschaftentool
[fachschaftentool.git] / application.py
index 1e0fcd890c1f445e51528a2fbbc7547943334ce0..3761ba343c9fed02391ca4a6273f0d35e7def773 100644 (file)
@@ -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())