Revision: 4053 Author: btongminh Date: 2007-08-16 20:45:50 +0000 (Thu, 16 Aug 2007)
Log Message: ----------- Add apipath() to Site
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2007-08-16 20:30:19 UTC (rev 4052) +++ trunk/pywikipedia/wikipedia.py 2007-08-16 20:45:50 UTC (rev 4053) @@ -3850,6 +3850,8 @@ return self.family.query_address(self.lang) def api_address(self): return self.family.api_address(self.lang) + def apipath(self): + return self.family.apipath(self.lang)
def protocol(self): return self.family.protocol(self.lang) @@ -4003,6 +4005,10 @@ self._mw_version = self.family.version(self.lang).split(".") return self._mw_version
+ def shared_image_repository(self): + sir = self.family.shared_image_repository() + return getSite(sir[0], sir[1]) + def __cmp__(self, other): """Pseudo method to be able to use equality and inequality tests on Site objects"""