Skip to content
Snippets Groups Projects
Commit 2e6d3544 authored by PierreSelim's avatar PierreSelim
Browse files

Adding pageid as attribute of the class Page

pageid was only accessible through the 'private' _info dict.
parent 31e2808e
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,7 @@ class Page(object):
self.length = info.get('length')
self.protection = dict([(i['type'], (i['level'], i['expiry'])) for i in info.get('protection', ()) if i])
self.redirect = 'redirect' in info
self.pageid = info.get('pageid', None)
self.last_rev_time = None
self.edit_time = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment