Thank you for the code.
Dnia 10.11.2009 Gilles Deacur <tronno22556@gmail.com> napisał/a:
> I posted this yesterday about 15 hours ago and don't see it yet, so I'mHere is the file that almost works for me:
---->8------ CUT HERE -----
# -*- coding: utf-8 -*-
__version__ = '$Id$'
import family
# The locksmithwiki family
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = 'lockwiki'
self.langs = {
'en': 'www.locksmithwiki.com',
}'_default': [u'Locksmith Wiki Knowledge Base talk',
self.namespaces[4] = {
'_default': [u'Locksmith Wiki Knowledge Base',
self.namespaces[4]['_default']], # REQUIRED
}
self.namespaces[4] = {
self.namespaces[5]['_default']], # REQUIRED
}
def scriptpath(self, code):
return '/lockwiki'
def version(self, code):
return '1.15.1'
def nicepath(self, code):
return "%s/" % self.path(self, code)
---->8------ CUT HERE -----
While pasting above file please be extremely careful about spaces.
However, your API does no seem to work because every response
includes a Byte Order Mark. Please see:
http://www.mediawiki.org/wiki/Manual:Errors_and_Symptoms#Warning:_Cannot_modify_header_information_-_headers_already_sent_by_.28....29
You need to probably unpack your mediawiki files using some sane tool.
--Marcin
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l