Revision: 5103 Author: russblau Date: 2008-03-05 14:33:00 +0000 (Wed, 05 Mar 2008)
Log Message: ----------- Add Site object access to scriptpath() value.
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-03-04 18:13:32 UTC (rev 5102) +++ trunk/pywikipedia/wikipedia.py 2008-03-05 14:33:00 UTC (rev 5103) @@ -5007,6 +5007,10 @@ """Return URL path for api.php (if enabled on this Site).""" return self.family.apipath(self.lang)
+ def scriptpath(self): + """Return URL prefix for scripts on this site ({{SCRIPTPATH}} value)""" + return self.family.scriptpath(self.lang) + def protocol(self): """Return protocol ('http' or 'https') for access to this site.""" return self.family.protocol(self.lang)