On 06/17/2011 05:48 AM, Daniel J Price wrote:
Are there any existing "binds", any functions from mwlib I can import
into my existing python script?
Yes and no: afterall mwlib is just a set of regular python modules,
therefore importing objects etc is possible. The problem is there is no
clean, well documented "customer facing" API.
Or is it all shell/sys arg driven?
Because I don't see anything exposed in the library to work with it in
that way.
Context is I'm trying to get articles in my custom mediawiki to
render to xhtml for import into a plone (god I hate plone).
I've already had to modify the mwlib library because the XHTML writer
has some... issues.
As said before: the xhtml writer is not maintained anymore, therefore I
am not surprised that it has issues ;)
But maybe you don't need that at all, since zip files generated via
mw-zip contain the html output from the mediawiki parser. Maybe that is
what you want? If on the other hand that's all you want, I believe you
don't need mwlib at all. You might be better of using the MediaWiki API
to iterate trough all articles and then fetch the html source via the
API. In contrast to mwlib the MediaWiki API is well documented ;)
http://en.wikipedia.org/w/api.php
As well, is there a proper place to submit bug
reports or patches?
Our bug tracker has issues too... Due to an increasing amount of spam it
is pretty much closed now. But we can discuss anything on the mailing
list. Patches are also welcome. Please make sure the patches are unified
diffs against the latest HEAD from the git repos.
--
volker haas brainbot technologies ag
fon +49 6131 2116394 boppstraße 64
fax +49 6131 2116392 55118 mainz
[email protected] http://www.brainbot.com/
--
You received this message because you are subscribed to the Google Groups
"mwlib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/mwlib?hl=en.