summaryrefslogtreecommitdiffstats
path: root/forum/skins/__init__.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-03-27 11:40:17 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-03-27 11:40:17 -0400
commitc6f0f78483cf6ac0fd1e607db02f765c6efddc27 (patch)
tree1ed394461f5de742122c2a43424284edd7be1e29 /forum/skins/__init__.py
parent9413c12d2126d4f86f2340e458226e72c0d4ecec (diff)
downloadaskbot-c6f0f78483cf6ac0fd1e607db02f765c6efddc27.tar.gz
askbot-c6f0f78483cf6ac0fd1e607db02f765c6efddc27.tar.bz2
askbot-c6f0f78483cf6ac0fd1e607db02f765c6efddc27.zip
dos2unix
Diffstat (limited to 'forum/skins/__init__.py')
-rwxr-xr-xforum/skins/__init__.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/forum/skins/__init__.py b/forum/skins/__init__.py
index be6bd4f3..10b6a340 100755
--- a/forum/skins/__init__.py
+++ b/forum/skins/__init__.py
@@ -5,9 +5,9 @@ from django.http import HttpResponse
import os.path
import logging
-#module for skinning osqa
+#module for skinning askbot
#at this point skin can be changed only in settings file
-#via OSQA_DEFAULT_SKIN variable
+#via ASKBOT_DEFAULT_SKIN variable
#note - Django template loaders use method django.utils._os.safe_join
#to work on unicode file paths
@@ -15,7 +15,7 @@ import logging
def load_template_source(name, dirs=None):
try:
- tname = os.path.join(settings.OSQA_DEFAULT_SKIN,'templates',name)
+ tname = os.path.join(settings.ASKBOT_DEFAULT_SKIN,'templates',name)
return filesystem.load_template_source(tname,dirs)
except:
tname = os.path.join('default','templates',name)
@@ -26,7 +26,7 @@ def find_media_source(url):
"""returns url prefixed with the skin name
of the first skin that contains the file
directories are searched in this order:
- settings.OSQA_DEFAULT_SKIN, then 'default', then 'commmon'
+ settings.ASKBOT_DEFAULT_SKIN, then 'default', then 'commmon'
if file is not found - returns None
and logs an error message
"""
@@ -37,9 +37,9 @@ def find_media_source(url):
f = os.path.isfile
skins = n(j(d(d(__file__)),'skins'))
try:
- media = os.path.join(skins, settings.OSQA_DEFAULT_SKIN, url)
+ media = os.path.join(skins, settings.ASKBOT_DEFAULT_SKIN, url)
assert(f(media))
- use_skin = settings.OSQA_DEFAULT_SKIN
+ use_skin = settings.ASKBOT_DEFAULT_SKIN
except:
try:
media = j(skins, 'default', url)