Thank you for the code.
I'm not sure exactly what response you got, but this is what login.py is
shooting back at me:
[QUOTE]
Logging in to lockwiki:en as XXXXXX
Error downloading data: no JSON object could be decoded
Request
en:/lockwiki/api.php?action=query&format=json&meta=userinfo&uiprop=block
info
Retrying
[/QUOTE]
I'm very unfamiliar with Byte Order Mark. Is this actually the problem
based on the screen output here?
On Wed, Nov 11, 2009 at 11:04 PM, Marcin Cieslak <saper(a)saper.info> wrote:
Dnia 10.11.2009 Gilles Deacur
<tronno22556(a)gmail.com> napisał/a:
I posted this yesterday about 15 hours ago and
don't see it yet, so I'm
Here 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',
}
self.namespaces[4] = {
'_default': [u'Locksmith Wiki Knowledge Base',
self.namespaces[4]['_default']], # REQUIRED
}
self.namespaces[4] = {
'_default': [u'Locksmith Wiki Knowledge Base talk',
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_mo…
You need to probably unpack your mediawiki files using some sane tool.
--Marcin
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l