-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thank you for your fast reply!

The issue raises actually because [1] returns "pseudo-interwiki" links
given by the DB names like 'dewiki', 'enwiki', and so on...

So in that case I would be happy with any piece of code within the
framework that is (somehow) able to deal with such links. At the moment
I'm using:

  site = pywikibot.getSite()
  print site.fam().get_known_families(site).values()

to try to deal with those links. But this list contains 'wiki' as known
family and if I try to use

  pywikibot.Page(site, u'wiki:blabla')

this won't work. To be more specific e.g. I get following 2 links:

itwikisource:User talk:DrTrigon
dewiki:User talk:DrTrigon

the I look up the list and can see 'wikisource' and 'wiki' beeing there.
Next step I try to convert to valid interwiki links and get:

wikisource:it:User talk:DrTrigon
wiki:de:User talk:DrTrigon

the first one (and a lot of similar links work perfectly) but the second
one (and for me the most frequent ones) does not work! It triggers:

wiki:de:User talk:DrTrigon is not a local page on wikipedia:de, and
the wiki family is not supported by PyWikipediaBot!

which is obviously not true at all!

On the other hand IF I do write

w:de:User talk:DrTrigon  OR  de:User talk:DrTrigon

it does work, but as far as I can see 'w' is no valid family at all.

To summarize its possible to handle this but to me it does not seam very
consistent behaviour, what do you think?

[1] http://toolserver.org/~merl/UserPages/query.php?user=DrTrigon

Thanks and Greetings
DrTrigon


Am 30.08.2011 13:03, schrieb Merlijn van Deen:
> Hello Dr. Trigon,
> 
> On 30 August 2011 11:39, Dr. Trigon <[email protected] 
> <mailto:[email protected]>> wrote:
> 
> I wanted to ask the question [1] here again. Would it be possible
> to include a 'wiki' family to enable such interwiki links?
> 
> 
> I'm not quite sure which interwiki links you mean. Links between 
> families are currently not supported afaik, and using 'wiki:blah'
> on wikipedia does not make much sense. To make matters worse,
> 'wiki:blah' can link to enwp:blah, but also to nlwp:blah, depending
> on which page it was linked from.
> 
> Best, Merlijn
> 
> 
> _______________________________________________ Pywikipedia-l
> mailing list [email protected] 
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5c4G4ACgkQAXWvBxzBrDBPYgCg4NPOFCq56kC4loatGUaHx+7R
jxIAoJfZQNyPYK4uL43C+NN5TQJKFWHK
=8fnd
-----END PGP SIGNATURE-----

_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to