fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Distutils installation script.
[redakcja.git]
/
apps
/
wiki
/
models.py
diff --git
a/apps/wiki/models.py
b/apps/wiki/models.py
index
9401041
..
282d4c5
100644
(file)
--- a/
apps/wiki/models.py
+++ b/
apps/wiki/models.py
@@
-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
import re
import vstorage
from vstorage import DocumentNotFound
@@
-67,5
+72,5
@@
class Document(object):
return result
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)