Created
October 5, 2011 21:23
-
-
Save jasonbaker/1265778 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WikipediaArticle(wiki.MediaWikiArticle): | |
sectionType = WikipediaSection | |
classNameProp = 'sub' | |
lang = 'en' | |
refSectionHeader = "References" | |
extLinkSectionHeader = "External link" | |
title = item.StoredField(setHook=wiki.encodeUTF8, key=True) | |
# XXX: This is a performance hit! | |
unicodeTitle = property(fget=lambda s: s.title.decode('utf-8')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment