Minor cleanup.
[redakcja.git] / apps / wiki / models.py
index 9401041..282d4c5 100644 (file)
@@ -1,3 +1,8 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.  
+#
 import re
 import vstorage
 from vstorage import DocumentNotFound
@@ -67,5 +72,5 @@ class Document(object):
 
         return result
 
-# Every time somebody says "let's have a global variable", God kills a kitten.
-storage = DocumentStorage(settings.REPOSITORY_PATH)
+def getstorage():
+    return DocumentStorage(settings.REPOSITORY_PATH)