Some work about statistics plugin. It is almost finished (for a basic version)

This commit is contained in:
tonio
2009-11-02 18:27:23 +01:00
parent 2b30c46c0d
commit 53df75f045
5 changed files with 119 additions and 35 deletions
+8
View File
@@ -70,3 +70,11 @@ def decode(s, encodings=('ascii', 'utf8', 'latin1')):
except UnicodeDecodeError:
pass
return s.decode('ascii', 'ignore')
def getoption(name, default=None):
res = None
try:
res = getattr(settings, name)
except AttributeError:
res = default
return res