Hi DrTrigon,
"wiki" is reserved by Family.known_families. You know you get the related
dbName of a site just by Site.dbName() which returns "dewiki_p" for
"wikipedia:de". Thereby for historic reasons, the databases are called xxwiki
instead of xxwikipedia for Wikipedias.
You are using side effects doing your dbname2wikilink() conversion and I am
sure you are able to modificate this stuff with stuff.replace("wiki:",
"wikipedia:") if needed. In other words (your wrote me) "There should be one--
and preferably only one --__obvious__ way to do it" and btw "Although that way
may not be obvious at first unless you're Dutch" (again: PEP20, The Zen of
Python)
Sali ;)
xqt
----- Original Nachricht ----
Von: "Dr. Trigon" <[email protected]>
An: [email protected]
Datum: 30.08.2011 19:02
Betreff: Re: [Pywikipedia-l] 'wiki' as synonym for 'wikipedia' in family?
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> > "wiki" is being use as the interwiki link to the original wiki,
> > WikiWikiWeb at http://c2.com/cgi/wiki, so you shouldn't use that
> > for anything related to Wikipedia. You are getting it returned
> > since Wikipedias can use it as an interwiki link to the
> > WikiWikiWeb, i.e. [[:wiki:WelcomeVisitors]] becomes
> > http://c2.com/cgi/wiki?WelcomeVisitors
>
> So this means essentially 'wiki' in toolserver DB (like e.g. 'dewiki')
> does not refer to the same as 'wiki' in pywikipediabot and interwiki...
> (strange...)
>
> But would also explain this 'inconsistency'... ;)
>
> Thanks and Greetings
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk5dF68ACgkQAXWvBxzBrDCi8ACg0YV5W6uEDDY61xcgxB9qsKq8
> 8KsAn0kHTE6IwqZZxZI8Lb/9Dk6E7ciP
> =dKzI
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Pywikipedia-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>
_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l