http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11018
Revision: 11018 Author: xqt Date: 2013-01-30 23:43:37 +0000 (Wed, 30 Jan 2013) Log Message: ----------- site property has_transcluded_data
Modified Paths: -------------- branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py =================================================================== --- branches/rewrite/pywikibot/site.py 2013-01-30 23:33:58 UTC (rev 11017) +++ branches/rewrite/pywikibot/site.py 2013-01-30 23:43:37 UTC (rev 11018) @@ -1056,6 +1056,12 @@ code, fam = self.shared_data_repository() return bool(code or fam)
+ @property + def has_transcluded_data(self): + """Return True if site has a shared image repository like wikidata""" + code, fam = self.shared_data_repository(True) + return bool(code or fam) + def image_repository(self): """Return Site object for image repository e.g. commons."""
pywikipedia-svn@lists.wikimedia.org