summaryrefslogtreecommitdiffstats
path: root/askbot/startup_procedures.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-09-22 17:50:27 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-09-22 17:50:27 -0400
commit44ca8c68afeea6848f750224d00a7d1b1bc09bcb (patch)
treeb639901d9c34aaaab7b9a15840b084d4100c6a27 /askbot/startup_procedures.py
parent4eeda2172a28df85fa4b795f0648add1f5c27f9c (diff)
downloadaskbot-44ca8c68afeea6848f750224d00a7d1b1bc09bcb.tar.gz
askbot-44ca8c68afeea6848f750224d00a7d1b1bc09bcb.tar.bz2
askbot-44ca8c68afeea6848f750224d00a7d1b1bc09bcb.zip
improved tag validation messages and fixed bug where tags were lost in the input box on edit
Diffstat (limited to 'askbot/startup_procedures.py')
-rw-r--r--askbot/startup_procedures.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/askbot/startup_procedures.py b/askbot/startup_procedures.py
index bfce701b..c6ab75a6 100644
--- a/askbot/startup_procedures.py
+++ b/askbot/startup_procedures.py
@@ -313,6 +313,19 @@ class SettingsTester(object):
'\n\n* '.join(self.messages)
)
+
+def test_new_skins():
+ """tests that there are no directories in the `askbot/skins`
+ because we've moved skin files a few levels up"""
+ askbot_root = askbot.get_install_directory()
+ for item in os.listdir(os.path.join(askbot_root, 'skins')):
+ item_path = os.path.join(askbot_root, 'skins', item)
+ if os.path.isdir(item_path):
+ raise AskbotConfigError(
+ ('Time to move skin files from %s.\n'
+ 'Now we have `askbot/templates` and `askbot/media`') % item_path
+ )
+
def test_staticfiles():
"""tests configuration of the staticfiles app"""
errors = list()
@@ -623,6 +636,7 @@ def run_startup_tests():
#test_csrf_cookie_domain()
test_tinymce()
test_staticfiles()
+ test_new_skins()
test_longerusername()
test_avatar()
settings_tester = SettingsTester({