adding different lists of folders

This commit is contained in:
ville rantanen
2011-12-02 16:00:50 +02:00
parent b59a476612
commit 3b46d8c8eb
3 changed files with 37 additions and 6 deletions

View File

@@ -146,7 +146,7 @@ def imagescript(path,list):
def imagelinks(path,list):
''' Returns the HTML string of images '''
strout='<div id="thumbcontainer">'
strout='<div id="thumbcontainer"><noscript>'
strout+='<h1>Images</h1>'
descriptions=getdescriptions(path,list)
n=0
@@ -155,7 +155,7 @@ def imagelinks(path,list):
desc=doublequotes.sub('',unicode(descriptions[n],encoding="utf8").encode('ascii', 'xmlcharrefreplace'))
strout+='<span class="imagebox thumbbox" id="n'+str(n)+'"><a href="'+urllib.quote(i)+'"><img class="thumbimage" "title="'+desc+'" src="_tn/tn_'+urllib.quote(i)+'.jpg"><br/>'+unicode(nice,encoding="utf8").encode('ascii', 'xmlcharrefreplace')+'</a></span>'
n+=1
strout+='</div>'
strout+='</noscript></div>'
return strout
def filescript(path,list):