Revision: 4945 Author: btongminh Date: 2008-01-28 11:23:11 +0000 (Mon, 28 Jan 2008)
Log Message: ----------- Add temporary SkipPages hack
Added Paths: ----------- trunk/pywikipedia/commonsdelinker/plugins/skipped_pages.py
Added: trunk/pywikipedia/commonsdelinker/plugins/skipped_pages.py =================================================================== --- trunk/pywikipedia/commonsdelinker/plugins/skipped_pages.py (rev 0) +++ trunk/pywikipedia/commonsdelinker/plugins/skipped_pages.py 2008-01-28 11:23:11 UTC (rev 4945) @@ -0,0 +1,12 @@ +__version__ = '$Id: $' + +class SkipPages(object): + hook = 'before_save' + def __init__(self, CommonsDelinker): + self.CommonsDelinker = CommonsDelinker + def __call__(self, page, text, new_text, summary): + site = page.site() + if (site.lang, site.family.name) == ('en', 'wikipedia'): + if page.title == 'Wikipedia:Sound/list': + return False + return True \ No newline at end of file
Property changes on: trunk/pywikipedia/commonsdelinker/plugins/skipped_pages.py ___________________________________________________________________ Name: svn:eol-style + native