Bugs item #2151078, was opened at 2008-10-07 10:40 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2151078...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Laurence Parry (greenreaper) Assigned to: Nobody/Anonymous (nobody) Summary: _default required for sample disambiguationTemplates
Initial Comment: I think this or something like it needs to be added to families/README-family.txt as without a _default a crash results when the family is used:
self.disambiguationTemplates = { '_default': [], # REQUIRED
---- Pywikipedia [http] trunk/pywikipedia (r5935, Oct 05 2008, 15:18:40) Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] ---- Traceback (most recent call last): File "C:\Program Files\Accessories\pywikipedia\interwiki.py", line 1735, in <module> bot.run() File "C:\Program Files\Accessories\pywikipedia\interwiki.py", line 1486, in run self.queryStep() File "C:\Program Files\Accessories\pywikipedia\interwiki.py", line 1460, in queryStep self.oneQuery() File "C:\Program Files\Accessories\pywikipedia\interwiki.py", line 1456, in oneQuery subject.workDone(self) File "C:\Program Files\Accessories\pywikipedia\interwiki.py", line 797, in workDone (skip, alternativePage) = self.disambigMismatch(page) File "C:\Program Files\Accessories\pywikipedia\interwiki.py", line 670, in disambigMismatch if self.originPage.isDisambig() and not page.isDisambig(): File "C:\Program Files\Accessories\pywikipedia\wikipedia.py", line 1015, in isDisambig self.site()._disambigtemplates = self.site().family.disambig(self.site().lang) File "C:\Program Files\Accessories\pywikipedia\family.py", line 2837, in disambig return self.disambiguationTemplates[fallback] KeyError: '_default'
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2151078...