http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9045
Revision: 9045 Author: xqt Date: 2011-03-13 11:24:32 +0000 (Sun, 13 Mar 2011) Log Message: ----------- remove obsolete file duplicate to sortonlanguaename.py
Removed Paths: ------------- trunk/pywikipedia/wiktionary/sortonlanguagename
Deleted: trunk/pywikipedia/wiktionary/sortonlanguagename =================================================================== --- trunk/pywikipedia/wiktionary/sortonlanguagename 2011-03-13 10:26:54 UTC (rev 9044) +++ trunk/pywikipedia/wiktionary/sortonlanguagename 2011-03-13 11:24:32 UTC (rev 9045) @@ -1,14 +0,0 @@ -# A big thanks to Rob Hooft for the following class: -# It may not seem like much, but it magically allows the translations to be sorted on -# the names of the languages. I would never have thought of doing it like this myself. - -class sortonlanguagename: - ''' - This class sorts translations alphabetically on the name of the language, - instead of on the iso abbreviation that is used internally. - ''' - def __init__(self, lang): - self.lang = lang - - def __call__(self, one, two): - return cmp(self.lang[one], self.lang[two])
pywikipedia-svn@lists.wikimedia.org