Revision: 5862 Author: russblau Date: 2008-08-28 19:38:11 +0000 (Thu, 28 Aug 2008)
Log Message: ----------- page_restrictions bug
Modified Paths: -------------- branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py =================================================================== --- branches/rewrite/pywikibot/site.py 2008-08-28 19:37:33 UTC (rev 5861) +++ branches/rewrite/pywikibot/site.py 2008-08-28 19:38:11 UTC (rev 5862) @@ -544,7 +544,8 @@ """Returns a dictionary reflecting page protections""" if not self.page_exists(page): raise NoPage(u'No page %s.' % page) - # page_exists called loadpageinfo which set protection levels + if not hasattr(page, "_protection"): + self.loadpageinfo(page) return page._protection
def page_can_be_edited(self, page):
pywikipedia-l@lists.wikimedia.org