Menu

#1317 page.editTime() fails when using site.allpages()

closed-fixed
rewrite (44)
5
2011-07-15
2011-05-30
Morten Wang
No

Iterating over site.allpages() (in my case with namespace=0 and filterredir=False) causes a call to page.editTime() to fail with a KeyError. Closer inspection shows that _revid is set for pages in the generator, but _revisions is an empty dictionary. So latestRevision() returns _revid with no corresponding revision in _revisions, and the KeyError is thrown.

I'm running the rewrite branch, revision 9274, on Python 2.7 on Linux.

Discussion

  • Russell Blau

    Russell Blau - 2011-07-15

    Fixed in r9379

     
  • Russell Blau

    Russell Blau - 2011-07-15
    • status: open --> closed-fixed
     

Log in to post a comment.