Revision: 4049 Author: btongminh Date: 2007-08-16 12:37:33 +0000 (Thu, 16 Aug 2007)
Log Message: ----------- Add the shared_image_repository function, which returns ('commons', 'commons')
Modified Paths: -------------- trunk/pywikipedia/families/commons_family.py trunk/pywikipedia/families/incubator_family.py trunk/pywikipedia/families/mediawiki_family.py trunk/pywikipedia/families/meta_family.py trunk/pywikipedia/families/wikisource_family.py trunk/pywikipedia/families/wikiversity_family.py trunk/pywikipedia/families/wiktionary_family.py trunk/pywikipedia/family.py
Modified: trunk/pywikipedia/families/commons_family.py =================================================================== --- trunk/pywikipedia/families/commons_family.py 2007-08-15 16:45:53 UTC (rev 4048) +++ trunk/pywikipedia/families/commons_family.py 2007-08-16 12:37:33 UTC (rev 4049) @@ -33,3 +33,5 @@ def version(self, code): return "1.11alpha"
+ def shared_image_repository(self): + return ('commons', 'commons')
Modified: trunk/pywikipedia/families/incubator_family.py =================================================================== --- trunk/pywikipedia/families/incubator_family.py 2007-08-15 16:45:53 UTC (rev 4048) +++ trunk/pywikipedia/families/incubator_family.py 2007-08-16 12:37:33 UTC (rev 4049) @@ -25,3 +25,5 @@ def version(self, code): return "1.11alpha"
+ def shared_image_repository(self): + return ('commons', 'commons')
Modified: trunk/pywikipedia/families/mediawiki_family.py =================================================================== --- trunk/pywikipedia/families/mediawiki_family.py 2007-08-15 16:45:53 UTC (rev 4048) +++ trunk/pywikipedia/families/mediawiki_family.py 2007-08-16 12:37:33 UTC (rev 4049) @@ -27,3 +27,5 @@
def version(self, code): return "1.11" + def shared_image_repository(self): + return ('commons', 'commons')
Modified: trunk/pywikipedia/families/meta_family.py =================================================================== --- trunk/pywikipedia/families/meta_family.py 2007-08-15 16:45:53 UTC (rev 4048) +++ trunk/pywikipedia/families/meta_family.py 2007-08-16 12:37:33 UTC (rev 4049) @@ -25,3 +25,5 @@
def version(self,code): return "1.11" + def shared_image_repository(self): + return ('commons', 'commons')
Modified: trunk/pywikipedia/families/wikisource_family.py =================================================================== --- trunk/pywikipedia/families/wikisource_family.py 2007-08-15 16:45:53 UTC (rev 4048) +++ trunk/pywikipedia/families/wikisource_family.py 2007-08-16 12:37:33 UTC (rev 4049) @@ -142,4 +142,6 @@
def version(self, code): return "1.11" - + def shared_image_repository(self): + return ('commons', 'commons') +
Modified: trunk/pywikipedia/families/wikiversity_family.py =================================================================== --- trunk/pywikipedia/families/wikiversity_family.py 2007-08-15 16:45:53 UTC (rev 4048) +++ trunk/pywikipedia/families/wikiversity_family.py 2007-08-16 12:37:33 UTC (rev 4049) @@ -95,3 +95,5 @@
def version(self,code): return "1.11alpha" + def shared_image_repository(self): + return ('commons', 'commons')
Modified: trunk/pywikipedia/families/wiktionary_family.py =================================================================== --- trunk/pywikipedia/families/wiktionary_family.py 2007-08-15 16:45:53 UTC (rev 4048) +++ trunk/pywikipedia/families/wiktionary_family.py 2007-08-16 12:37:33 UTC (rev 4049) @@ -218,4 +218,6 @@ def version(self, code): return "1.11"
+ def shared_image_repository(self): + return ('commons', 'commons')
Modified: trunk/pywikipedia/family.py =================================================================== --- trunk/pywikipedia/family.py 2007-08-15 16:45:53 UTC (rev 4048) +++ trunk/pywikipedia/family.py 2007-08-16 12:37:33 UTC (rev 4049) @@ -2614,3 +2614,7 @@ def has_query_api(self,code): """Is query.php installed in the wiki?""" return False + + def shared_image_repository(self): + """Return the shared image repository, if any.""" + return (None, None)