Mercurial > public > sg101
comparison gpp/legacy/management/commands/translate_old_posts.py @ 321:28de6caa4e6d
Fix bad grammar in comment.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 09 Feb 2011 01:28:36 +0000 |
parents | 254db4cb6a86 |
children |
comparison
equal
deleted
inserted
replaced
320:66cc2f8c4603 | 321:28de6caa4e6d |
---|---|
1 """ | 1 """ |
2 translate_old_posts.py - A management command to join the bbposts and | 2 translate_old_posts.py - A management command to join the bbposts and |
3 bbposts_text tables together and output as a .csv file, suitable for use as an | 3 bbposts_text tables together and output as a .csv file, suitable for use as an |
4 input to mysqlimport into the new database. This method bypasses the Django ORM | 4 input to mysqlimport into the new database. This method bypasses the Django ORM |
5 as it was too slow given the number of old posts to import. | 5 as it was too slow given the number of old posts to import. |
6 | 6 |
7 """ | 7 """ |
32 n & 0xff) | 32 n & 0xff) |
33 | 33 |
34 | 34 |
35 class Command(NoArgsCommand): | 35 class Command(NoArgsCommand): |
36 help = """\ | 36 help = """\ |
37 This command joins converts the SG101 1.0 posts to 2.0 format and outputs the | 37 This command joins the SG101 1.0 posts to 2.0 format and outputs the |
38 data as a .csv file suitable for importing into the new database scheme with | 38 data as a .csv file suitable for importing into the new database scheme with |
39 the mysqlimport utility. | 39 the mysqlimport utility. |
40 """ | 40 """ |
41 option_list = NoArgsCommand.option_list + ( | 41 option_list = NoArgsCommand.option_list + ( |
42 optparse.make_option("-s", "--progress", action="store_true", | 42 optparse.make_option("-s", "--progress", action="store_true", |