~oubiwann/+junk/pm-scripts

« back to all changes in this revision

Viewing changes to wiki/oempmwiki/scripts.py

  • Committer: duncan at ubuntu
  • Date: 2011-06-11 00:16:31 UTC
  • Revision ID: duncan@ubuntu.com-20110611001631-0df8sluerg2ql03w
* Added a config module.
* Added status and color parsing/setting utility functions.
* Updated project status row class to check for status and set colors if
  possible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    def run(self):
64
64
        data_key = "0ArIWq6t1tnKldGtGRkxGRzVuczBJcW83b3VlRlYyUGc"
65
65
        options = self.get_options()
 
66
        print "Getting data from Google..."
66
67
        reader = util.get_google_csv_reader(data_key)
67
68
        wiki_writer = writer.WikiWriter(
68
69
            options.url, options.username, options.password)
69
70
        data = [x for x in reader]
70
 
        wiki_table = table.WikiTable(
 
71
        wiki_table = table.ProjectStatusTable(
71
72
            data, has_headers=True, has_subheaders=True,
72
73
            writer=wiki_writer)
73
74
        wiki_table.write()