Starting to work with configuration window

This commit is contained in:
ville rantanen
2012-03-05 15:08:22 +02:00
parent a622ddcba3
commit 726ae3e305
3 changed files with 59 additions and 8 deletions

View File

@@ -184,9 +184,8 @@ def filelinks(path,list):
strout+='<h2>Attachments</h1>'
n=0
for i in list:
nice=nicestring(i)
size=sizestring(os.path.getsize(os.path.join(path,i)))
strout+='<span class="attachmentbox" id="a'+str(n)+'"><a href="'+urllib.quote(i)+'">'+unicode(nice,encoding="utf8").encode('ascii', 'xmlcharrefreplace')+' ['+size+']</a></span>'
strout+='<span class="attachmentbox" id="a'+str(n)+'"><a href="'+urllib.quote(i)+'">'+unicode(i,encoding="utf8").encode('ascii', 'xmlcharrefreplace')+' ['+size+']</a></span>'
n+=1
strout+='</div>'
return strout