Indeed, this solved the problem I had. Thanks for your help.

Could someone apply this change on the svn server?

Arkaitz


2011/2/25 Andre Engels <andreengels@gmail.com>
On Fri, Feb 25, 2011 at 8:22 AM, Arkaitz Zubiaga
<arkaitz.zubiaga@gmail.com> wrote:
> Hello,
> On latest versions, pywikipediabot is ignoring the hints I give either by
> using -hint:lang:page, or -askhints and typing them manually afterward. It
> should work as usual according to the documentation in interwiki.py, though.
> Did any recent change on the code affect this behavior? It seems that the
> list of hints is emptied at same point.

I have noticed this bug already a while ago, and found a solution;
however, I don't have my PGP key registered at the moment so I could
not submit it (if someone knows how to resolve that, please let me
know!)

In titletranslate.py there is a line:

                   if ( page is None ) or ( ( newcode != sitelang )
and ( not family.interwiki_forwarded_from ) ):

this should be:

                   if ( page is None ) or ( ( newcode != sitelang )
and ( not pywikibot.getSite().family.name in
family.interwiki_forwarded_from ) ):

Making this change should resolve the problem of not being able to
give any hints.

--
André Engels, andreengels@gmail.com

_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l