MediaWiki entry parser

Asheesh Laroia <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
I'm starting to use pyblosxom.  It seems very flexible, easy to bend to my 
needs - thanks all for that!

I've written a basic renderer for MediaWiki syntax as a Python module 
called mwparser.  It's on the Python Package Index at 
http://www.python.org/pypi/mwparser/ .

I have also written a MediaWiki-format entry parser for pyblosxom. 
That's available at 
http://svn.asheesh.org/svn/public/code/pyblosxom/mediawiki.py .

I have a question: I want the title of the blog post to be the filename 
with the '.txt' suffix removed.  I tried this in readfile():

     entryData['title'] = filename # tee-hee!

But that doesn't seem to actually set the title; despite that code in 
readfile(), the first line is taken as the title.  Can this code override 
the default way of finding the title of a post?  If not, how would I do 
that?

I'd love to hear your comments on the mediawiki syntax parser (either the 
Python module or the Pyblosxom plugin), or the above question.  Thanks!

-- Asheesh.

-- 
Sometimes a feeling is all we humans have to go on.
 		-- Kirk, "A Taste of Armageddon", stardate 3193.9

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.