From b643997518b3660eecc7279c52ff2e369d0d67a9 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 27 Feb 2010 17:18:49 +0530 Subject: [PATCH] no / in filename --- oxweb/aaaarg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oxweb/aaaarg.py b/oxweb/aaaarg.py index cca6385..4e5462a 100644 --- a/oxweb/aaaarg.py +++ b/oxweb/aaaarg.py @@ -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,