Revision: 8547 Author: xqt Date: 2010-09-13 09:55:15 +0000 (Mon, 13 Sep 2010)
Log Message: ----------- remove debug stuff
Modified Paths: -------------- trunk/pywikipedia/commonscat.py
Modified: trunk/pywikipedia/commonscat.py =================================================================== --- trunk/pywikipedia/commonscat.py 2010-09-13 09:44:40 UTC (rev 8546) +++ trunk/pywikipedia/commonscat.py 2010-09-13 09:55:15 UTC (rev 8547) @@ -201,22 +201,7 @@ else: (status, always) = self.addCommonscat(page) return - ##### - text = self.load(page) - if not text: - return
- ################################################################ - # NOTE: Here you can modify the text in whatever way you want. # - ################################################################ - - # If you find out that you do not want to edit this page, just return. - # Example: This puts the text 'Test' at the beginning of the page. - text = 'Test ' + text - - if not self.save(text, page, self.summary): - pywikibot.output(u'Page %s not saved.' % page.title(asLink=True)) - def load(self, page): """ Loads the given page, does some changes, and saves it. @@ -457,10 +442,6 @@ commonscatNote = template[1][2] else: commonscatTarget = wikipediaPage.titleWithoutNamespace() - print commonscatTemplate - print commonscatTarget - print commonscatLinktext - print commonscatNote return (commonscatTemplate, commonscatTarget, commonscatLinktext, commonscatNote)
pywikipedia-svn@lists.wikimedia.org