Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing origin attr added per 0.11 xsd #19

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mwxml/about.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__name__ = "mwxml"
__version__ = "0.3.3"
__version__ = "0.3.4"
__author__ = "Aaron Halfaker"
__author_email__ = "[email protected]"
__description__ = "A set of utilities for processing MediaWiki XML dump data."
Expand Down
3 changes: 3 additions & 0 deletions mwxml/iteration/revision.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def from_element(cls, element):
user = None
user_deleted = False
minor = False
origin = None
comment = None
comment_deleted = False
text = None
Expand All @@ -49,6 +50,8 @@ def from_element(cls, element):
user = User.from_element(sub_element)
elif tag == "minor":
minor = True
elif tag == "origin":
origin = sub_element.text
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to add "origin" to the mwtypes.Revision model too and make sure it gets set.

elif tag == "sha1":
sha1 = sub_element.text
elif tag == "parentid":
Expand Down