dir_list = os.listdir(abs_path)
files = []
- print "LISTING FILES: ", dir_list
+ # print "LISTING FILES: ", dir_list
for file in dir_list:
- print repr(file)
+ # print repr(file)
# EXCLUDE FILES MATCHING VERSIONS_PREFIX OR ANY OF THE EXCLUDE PATTERNS
filtered = file.startswith('.')
for re_prefix in filter_re:
images = [u'%s%s%s/%s' % (settings.MEDIA_URL, settings.FILEBROWSER_DIRECTORY, directory, f) for f in os.listdir(base_dir) if os.path.splitext(f)[1].lower() in (u'.jpg', u'.jpeg', u'.png')]
images.sort()
return HttpResponse(json.dumps(images))
- except (IndexError, OSError), e:
+ except (IndexError, OSError), exc:
+ import traceback
+ traceback.print_exc()
+
raise Http404
<div class="vsplitbar"> </div>
<div id="sidebar">
<div class="toolbar">
- <button class="previous-page">⇽ Poprzednia</button>
+ <button class="previous-page">Poprzednia</button>
<input type="text" size="3" maxlength="3" value="1" class="page-number" />
- <button class="next-page">Następna ⇾</button>
+ <button class="next-page">Następna</button>
<button class="zoom-in">Powiększ</button>
<button class="zoom-out">Pomniejsz</button>
- <button class="change-gallery">Zmień galerię</button>
+ <button class="change-gallery">Galeria</button>
<div class="toolbar-end"> </div>
</div>
<div class="toolbar" id="change-gallery-toolbar">