Revision: 6640 Author: russblau Date: 2009-04-20 13:12:19 +0000 (Mon, 20 Apr 2009)
Log Message: ----------- Patch #2776167 from liangent
Modified Paths: -------------- branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py =================================================================== --- branches/rewrite/pywikibot/site.py 2009-04-19 17:25:22 UTC (rev 6639) +++ branches/rewrite/pywikibot/site.py 2009-04-20 13:12:19 UTC (rev 6640) @@ -173,7 +173,7 @@ """Calls to methods not defined in this object are passed to Family."""
if hasattr(self.__class__, attr): - return self.__class__.attr + return getattr(self.__class__, attr) try: method = getattr(self.family, attr) f = lambda *args, **kwargs: \ @@ -617,7 +617,7 @@ self.nocapitalize = self.code in self.family.nocapitalize return
-# ANYTHING BELOW THIS POINT IS NOT YET IMPLEMENTED IN __init__() + # ANYTHING BELOW THIS POINT IS NOT YET IMPLEMENTED IN __init__() # Calculating valid languages took quite long, so we calculate it once # in initialization instead of each time it is used. self._validlanguages = []
pywikipedia-svn@lists.wikimedia.org