Mercurial > public > sg101
diff gpp/legacy/management/commands/import_old_news.py @ 294:254db4cb6a86
Changes / scripts to import forums. Other tweaks and moving other import scripts to the legacy application.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 05 Jan 2011 04:09:35 +0000 |
parents | 2367c4795c92 |
children | 4021ea1045f7 |
line wrap: on
line diff
--- a/gpp/legacy/management/commands/import_old_news.py Wed Dec 29 04:56:53 2010 +0000 +++ b/gpp/legacy/management/commands/import_old_news.py Wed Jan 05 04:09:35 2011 +0000 @@ -86,11 +86,11 @@ return story = Story(id=int(row['sid']), - title=unescape(row['title']), + title=unescape(row['title'].decode('latin-1')), submitter=submitter, category=self.topics[int(row['topic'])], - short_text=row['hometext'], - long_text=row['bodytext'], + short_text=row['hometext'].decode('latin-1'), + long_text=row['bodytext'].decode('latin-1'), date_submitted=datetime.strptime(row['time'], "%Y-%m-%d %H:%M:%S"), allow_comments=True)