no / in filename

This commit is contained in:
j 2010-02-27 17:18:49 +05:30
parent 686bf450e4
commit b643997518

View file

@ -44,7 +44,7 @@ def getTextByLetter(letter):
title = decodeHtml(r[2])
author_foder = canonicalName(author)
author_foder = os.path.join(author_foder[0], author_foder)
filename = os.path.join(author_foder, '%s (aaarg %s).pdf' % (title, id))
filename = os.path.join(author_foder, '%s (aaarg %s).pdf' % (title.replace('/', '_'), id))
texts.append({
'author': author,
'title': title,