Revision: 4065 Author: btongminh Date: 2007-08-18 10:14:03 +0000 (Sat, 18 Aug 2007)
Log Message: ----------- Standardizing shared_image_repository()
Modified Paths: -------------- trunk/pywikipedia/families/commons_family.py trunk/pywikipedia/families/mediawiki_family.py trunk/pywikipedia/families/meta_family.py trunk/pywikipedia/families/species_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-18 09:27:31 UTC (rev 4064) +++ trunk/pywikipedia/families/commons_family.py 2007-08-18 10:14:03 UTC (rev 4065) @@ -33,5 +33,5 @@ def version(self, code): return "1.11alpha"
- def shared_image_repository(self): + def shared_image_repository(self, code): return ('commons', 'commons')
Modified: trunk/pywikipedia/families/mediawiki_family.py =================================================================== --- trunk/pywikipedia/families/mediawiki_family.py 2007-08-18 09:27:31 UTC (rev 4064) +++ trunk/pywikipedia/families/mediawiki_family.py 2007-08-18 10:14:03 UTC (rev 4065) @@ -27,5 +27,6 @@
def version(self, code): return "1.11" - def shared_image_repository(self): + def shared_image_repository(self, code): return ('commons', 'commons') +s \ No newline at end of file
Modified: trunk/pywikipedia/families/meta_family.py =================================================================== --- trunk/pywikipedia/families/meta_family.py 2007-08-18 09:27:31 UTC (rev 4064) +++ trunk/pywikipedia/families/meta_family.py 2007-08-18 10:14:03 UTC (rev 4065) @@ -25,5 +25,5 @@
def version(self,code): return "1.11" - def shared_image_repository(self): + def shared_image_repository(self, code): return ('commons', 'commons')
Modified: trunk/pywikipedia/families/species_family.py =================================================================== --- trunk/pywikipedia/families/species_family.py 2007-08-18 09:27:31 UTC (rev 4064) +++ trunk/pywikipedia/families/species_family.py 2007-08-18 10:14:03 UTC (rev 4065) @@ -25,3 +25,5 @@
def version(self,code): return "1.11" + def shared_image_repository(self, code): + return ('commons', 'commons')
Modified: trunk/pywikipedia/families/wikisource_family.py =================================================================== --- trunk/pywikipedia/families/wikisource_family.py 2007-08-18 09:27:31 UTC (rev 4064) +++ trunk/pywikipedia/families/wikisource_family.py 2007-08-18 10:14:03 UTC (rev 4065) @@ -142,6 +142,6 @@
def version(self, code): return "1.11" - def shared_image_repository(self): + def shared_image_repository(self, code): return ('commons', 'commons')
Modified: trunk/pywikipedia/families/wikiversity_family.py =================================================================== --- trunk/pywikipedia/families/wikiversity_family.py 2007-08-18 09:27:31 UTC (rev 4064) +++ trunk/pywikipedia/families/wikiversity_family.py 2007-08-18 10:14:03 UTC (rev 4065) @@ -95,5 +95,5 @@
def version(self,code): return "1.11alpha" - def shared_image_repository(self): + def shared_image_repository(self, code): return ('commons', 'commons')
Modified: trunk/pywikipedia/families/wiktionary_family.py =================================================================== --- trunk/pywikipedia/families/wiktionary_family.py 2007-08-18 09:27:31 UTC (rev 4064) +++ trunk/pywikipedia/families/wiktionary_family.py 2007-08-18 10:14:03 UTC (rev 4065) @@ -218,6 +218,6 @@ def version(self, code): return "1.11"
- def shared_image_repository(self): + def shared_image_repository(self, code): return ('commons', 'commons')
Modified: trunk/pywikipedia/family.py =================================================================== --- trunk/pywikipedia/family.py 2007-08-18 09:27:31 UTC (rev 4064) +++ trunk/pywikipedia/family.py 2007-08-18 10:14:03 UTC (rev 4065) @@ -2632,6 +2632,6 @@ """Is query.php installed in the wiki?""" return False
- def shared_image_repository(self): + def shared_image_repository(self, code): """Return the shared image repository, if any.""" return (None, None)