diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-05-10 15:20:51 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-05-10 15:20:51 -0400 |
commit | 576a8f1e25109a46b44c62a8e4276eae45d6cd18 (patch) | |
tree | 418296b33fb9a33f90e25a1c3f30356dc10b4b00 /forum | |
parent | 44a781e7b15fe3d372c9a974207bb51012b942f3 (diff) | |
download | askbot-576a8f1e25109a46b44c62a8e4276eae45d6cd18.tar.gz askbot-576a8f1e25109a46b44c62a8e4276eae45d6cd18.tar.bz2 askbot-576a8f1e25109a46b44c62a8e4276eae45d6cd18.zip |
improved settings view
Diffstat (limited to 'forum')
-rw-r--r-- | forum/skins/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/forum/skins/__init__.py b/forum/skins/__init__.py index 16af70f3..8e5265e8 100644 --- a/forum/skins/__init__.py +++ b/forum/skins/__init__.py @@ -73,10 +73,15 @@ def find_media_source(url): return use_skin + '/' + url def get_skin_choices(): + #todo: expand this to handle custom skin directories dirs = get_skin_dirs() - items = os.listdir(dirs[0]) + default_dir = dirs[0] + items = os.listdir(default_dir) skin_list = ['default'] for i in items: + item_path = os.path.join(default_dir,i) + if not os.path.isdir(item_path): + continue if i == 'common': continue if i not in skin_list: |