osdir.com
mailing list archive

Subject: pywikipedia wikibooks_family.py,NONE,1.1 - msg#00005

List: python.pywikipediabot.general

Date: Prev Next Index Thread: Prev Next Index
Update of /cvsroot/pywikipediabot/pywikipedia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5691

Added Files:
wikibooks_family.py
Log Message:
adding

--- NEW FILE: wikibooks_family.py ---
# -*- coding: utf-8 -*-

import urllib
import family, config

# The wikimedia family that is known as Wikibooks.

class Family(family.Family):
name = 'wikibooks'

langs = {
'af':'af.wikiquote.org', # Afrikaans
'als':'als.wikiquote.org', # Alsatian
'ar':'ar.wikiquote.org', # Arabic
'az':'az.wikiquote.org', # Azerbaijan
'be':'be.wikiquote.org', # Belorussian
'bg':'bg.wikiquote.org', # Bulgarian
'bi':'bi.wikiquote.org', # Bislama (currently also used by Bitruscan
and Tok Pisin)
'bn':'bn.wikiquote.org', # Bengali
'bs':'bs.wikiquote.org', # Bosnian
'ca':'ca.wikiquote.org', # Catalan
'chr':'chr.wikiquote.org', # Cherokee
'co':'co.wikiquote.org', # Corsican
'cs':'cs.wikiquote.org', # Czech
'csb':'csb.wikiquote.org', # Kashubian
'cy':'cy.wikiquote.org', # Welsh
'da':'da.wikiquote.org', # Danish
'de':'de.wikiquote.org', # German
'dk':'da.wikiquote.org', # Danish (wrong name)
'el':'el.wikiquote.org', # Greek
'en':'en.wikiquote.org', # English
'eo':'eo.wikiquote.org', # Esperanto
'es':'es.wikiquote.org', # Spanish
'et':'et.wikiquote.org', # Estonian
'eu':'eu.wikiquote.org', # Basque
'fa':'fa.wikiquote.org', # Farsi
'fi':'fi.wikiquote.org', # Finnish
'fo':'fo.wikiquote.org', # Faroese
'fr':'fr.wikiquote.org', # French
'fy':'fy.wikiquote.org', # Frisian
'ga':'ga.wikiquote.org', # Irish Gaelic
'gd':'gd.wikiquote.org', # Scottish Gaelic
'gl':'gl.wikiquote.org', # Galician
'gn':'gn.wikiquote.org', # Guarani
'gv':'gv.wikiquote.org', # Manx
'he':'he.wikiquote.org', # Hebrew
'hi':'hi.wikiquote.org', # Hindi
'hr':'hr.wikiquote.org', # Croatian
'hu':'hu.wikiquote.org', # Hungarian
'ia':'ia.wikiquote.org', # Interlingua
'id':'id.wikiquote.org', # Indonesian
'io':'io.wikiquote.org', # Ido
'is':'is.wikiquote.org', # Icelandic
'it':'it.wikiquote.org', # Italian
'ja':'ja.wikiquote.org', # Japanese
'jv':'jv.wikiquote.org', # Javanese
'ka':'ka.wikiquote.org', # Georgian
'km':'km.wikiquote.org', # Khmer
'ko':'ko.wikiquote.org', # Korean
'ks':'ks.wikiquote.org', # Ekspreso, but should become Kashmiri
'ku':'ku.wikiquote.org', # Kurdish
'la':'la.wikiquote.org', # Latin
'lt':'lt.wikiquote.org', # Latvian
'lv':'lv.wikiquote.org', # Livonian
'mg':'mg.wikiquote.org', # Malagasy
'mi':'mi.wikiquote.org', # Maori
'minnan':'minnan.wikiquote.org', # Min-Nan
'mk':'mk.wikiquote.org', # Macedonian
'ml':'ml.wikiquote.org', # Malayalam
'mn':'mn.wikiquote.org', # Mongolian
'mr':'mr.wikiquote.org', # Marathi
'ms':'ms.wikiquote.org', # Malay
'na':'na.wikiquote.org', # Nauruan
'nah':'nah.wikiquote.org', # Nahuatl
'nb':'no.wikiquote.org', # Norse - new code for Bokmal to distinguish
from Nynorsk
'nds':'nds.wikiquote.org', # Lower Saxon
'nl':'nl.wikiquote.org', # Dutch
'no':'no.wikiquote.org', # Norwegian
'oc':'oc.wikiquote.org', # Occitan
'om':'om.wikiquote.org', # Oromo
'pl':'pl.wikiquote.org', # Polish
'pt':'pt.wikiquote.org', # Portuguese
'ro':'ro.wikiquote.org', # Romanian
'roa-rup':'roa-rup.wikiquote.org', # Aromanian
'ru':'ru.wikiquote.org', # Russian
'sa':'sa.wikiquote.org', # Sanskrit
'sh':'sh.wikiquote.org', # OBSOLETE, Serbocroatian
'si':'si.wikiquote.org', # Sinhalese
'simple':'simple.wikiquote.org', # Simple English
'sk':'sk.wikiquote.org', # Slovakian
'sl':'sl.wikiquote.org', # Slovenian
'sq':'sq.wikiquote.org', # Albanian
'sr':'sr.wikiquote.org', # Serbian
'st':'st.wikiquote.org', # Sesotho
'su':'su.wikiquote.org', # Sundanese
'sv':'sv.wikiquote.org', # Swedish
'sw':'sw.wikiquote.org', # Swahili
'ta':'ta.wikiquote.org', # Tamil
'test':'test.wikiquote.org',
'th':'th.wikiquote.org', # Thai
'tl':'tl.wikiquote.org', # Tagalog
'tlh':'tlh.wikiquote.org', # Klingon
'tokipona':'tokipona.wikiquote.org', # Toki Pona
'tpi':'tpi.wikiquote.org', # Tok Pisin
'tr':'tr.wikiquote.org', # Turkish
'tt':'tt.wikiquote.org', # Tatar
'uk':'uk.wikiquote.org', # Ukrainian
'ur':'ur.wikiquote.org', # Urdu
'vi':'vi.wikiquote.org', # Vietnamese
'vo':'vo.wikiquote.org', # Volapuk
'wa':'wa.wikiquote.org', # Walon
'xh':'xh.wikiquote.org', # isiXhosa
'yi':'yi.wikiquote.org', # Yiddish
'yo':'yo.wikiquote.org', # Yoruba
'za':'za.wikiquote.org', # Zhuang
'zh':'zh.wikiquote.org', # Chinese
'zh-cn':'zh.wikiquote.org', # Simplified Chinese
'zh-tw':'zh.wikiquote.org', # Traditional Chinese
}

# Namespaces are inherited from family.Family()

# Which languages have a special order for putting interlanguage links,
# and what order is it? If a language is not in interwiki_putfirst,
# alphabetical order on language code is used. For languages that are in
# interwiki_putfirst, interwiki_putfirst is checked first, and
# languages are put in the order given there. All other languages are put
# after those, in code-alphabetical order.

alphabetic = ['af','ar','roa-rup','om','bg','be','bn','bs',
'ca','chr','co','cs','cy','da','de','als','et',
'el','en','es','eo','eu','fa','fr','fy','ga','gv',
'gd','gl','ko','hi','hr','io','id','ia','is','it',
'he','jv','ka','csb','ks','sw','la','lv','lt','hu',
'mk','mg','ml','mi','mr','ms','zh-cfr','mn','nah','na',
'nl','ja','no','nb','oc','nds','pl','pt','ro','ru',
'sa','st','sq','si','simple','sk','sl','sr','su',
'fi','sv','ta','tt','th','tlh','ur','vi','tokipona',
'tpi','tr','uk','vo','yi','yo','za','zh','zh-cn',
'zh-tw']

interwiki_putfirst = {
'en': self.alphabetic,
'fr': self.alphabetic,
'hu': ['en'],
'pl': self.alphabetic,
'simple': self.alphabetic
}

# group of languages that we might want to do at once

cyrilliclangs = ['be', 'bg', 'mk', 'ru', 'sr', 'uk'] # languages in Cyrillic



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

pywikipedia lib_images.py,1.59,1.60

Update of /cvsroot/pywikipediabot/pywikipedia In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18282 Modified Files: lib_images.py Log Message: adding portuguese exit message Index: lib_images.py =================================================================== RCS file: /cvsroot/pywikipediabot/pywikipedia/lib_images.py,v retrieving revision 1.59 retrieving revision 1.60 diff -C2 -d -r1.59 -r1.60 *** lib_images.py 1 Nov 2004 18:06:08 -0000 1.59 --- lib_images.py 30 Nov 2004 03:23:07 -0000 1.60 *************** *** 10,16 **** copy_message = { ! "en":u"This image was copied from %s. The original description was:\r\n\r\n%s", ! "de":u"Dieses Bild wurde von %s kopiert. Die dortige Beschreibung lautete:\r\n\r\n%s", ! "nl":u"Afbeelding gekopieerd vanaf %s. De beschrijving daar was:\r\n\r\n%s", } --- 10,17 ---- copy_message = { ! 'en':u"This image was copied from %s. The original description was:\r\n\r\n%s", ! 'de':u"Dieses Bild wurde von %s kopiert. Die dortige Beschreibung lautete:\r\n\r\n%s", ! 'nl':u"Afbeelding gekopieerd vanaf %s. De beschrijving daar was:\r\n\r\n%s", ! 'pt':u"Esta imagem foi copiada de %s. A descrição original foi:\r\n\r\n%s", } *************** *** 237,239 **** print "Page not found" return filename - --- 238,239 ---- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/

Next Message by Date: click to view message preview

Re: pywikipedia wikibooks_family.py,NONE,1.1

The file claims to be wikibooks, but all URLs are at wikiquote. Which one is correct? Andre Engels On Tue, 30 Nov 2004 04:57:20 +0000, Leonardo Gregianin <leogregianin@xxxxxxxxxxxxxxxxxxxxx> wrote: > Update of /cvsroot/pywikipediabot/pywikipedia > In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5691 > > Added Files: > wikibooks_family.py > Log Message: > adding > > --- NEW FILE: wikibooks_family.py --- > # -*- coding: utf-8 -*- > > import urllib > import family, config > > # The wikimedia family that is known as Wikibooks. > > class Family(family.Family): > name = 'wikibooks' > > langs = { > 'af':'af.wikiquote.org', # Afrikaans > 'als':'als.wikiquote.org', # Alsatian > 'ar':'ar.wikiquote.org', # Arabic > 'az':'az.wikiquote.org', # Azerbaijan > 'be':'be.wikiquote.org', # Belorussian > 'bg':'bg.wikiquote.org', # Bulgarian > 'bi':'bi.wikiquote.org', # Bislama (currently also used by > Bitruscan and Tok Pisin) ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/

Previous Message by Thread: click to view message preview

pywikipedia lib_images.py,1.59,1.60

Update of /cvsroot/pywikipediabot/pywikipedia In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18282 Modified Files: lib_images.py Log Message: adding portuguese exit message Index: lib_images.py =================================================================== RCS file: /cvsroot/pywikipediabot/pywikipedia/lib_images.py,v retrieving revision 1.59 retrieving revision 1.60 diff -C2 -d -r1.59 -r1.60 *** lib_images.py 1 Nov 2004 18:06:08 -0000 1.59 --- lib_images.py 30 Nov 2004 03:23:07 -0000 1.60 *************** *** 10,16 **** copy_message = { ! "en":u"This image was copied from %s. The original description was:\r\n\r\n%s", ! "de":u"Dieses Bild wurde von %s kopiert. Die dortige Beschreibung lautete:\r\n\r\n%s", ! "nl":u"Afbeelding gekopieerd vanaf %s. De beschrijving daar was:\r\n\r\n%s", } --- 10,17 ---- copy_message = { ! 'en':u"This image was copied from %s. The original description was:\r\n\r\n%s", ! 'de':u"Dieses Bild wurde von %s kopiert. Die dortige Beschreibung lautete:\r\n\r\n%s", ! 'nl':u"Afbeelding gekopieerd vanaf %s. De beschrijving daar was:\r\n\r\n%s", ! 'pt':u"Esta imagem foi copiada de %s. A descrição original foi:\r\n\r\n%s", } *************** *** 237,239 **** print "Page not found" return filename - --- 238,239 ---- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/

Next Message by Thread: click to view message preview

Re: pywikipedia wikibooks_family.py,NONE,1.1

The file claims to be wikibooks, but all URLs are at wikiquote. Which one is correct? Andre Engels On Tue, 30 Nov 2004 04:57:20 +0000, Leonardo Gregianin <leogregianin@xxxxxxxxxxxxxxxxxxxxx> wrote: > Update of /cvsroot/pywikipediabot/pywikipedia > In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5691 > > Added Files: > wikibooks_family.py > Log Message: > adding > > --- NEW FILE: wikibooks_family.py --- > # -*- coding: utf-8 -*- > > import urllib > import family, config > > # The wikimedia family that is known as Wikibooks. > > class Family(family.Family): > name = 'wikibooks' > > langs = { > 'af':'af.wikiquote.org', # Afrikaans > 'als':'als.wikiquote.org', # Alsatian > 'ar':'ar.wikiquote.org', # Arabic > 'az':'az.wikiquote.org', # Azerbaijan > 'be':'be.wikiquote.org', # Belorussian > 'bg':'bg.wikiquote.org', # Bulgarian > 'bi':'bi.wikiquote.org', # Bislama (currently also used by > Bitruscan and Tok Pisin) ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by