Re: writing a moin parser

jacob martinson <[email protected]> Thu, 23 Jun 2005 01:11:43 -0500
Newsgroups gmane.comp.web.wiki.moin.devel
Message-ID <[email protected]>
just wanted to say thanks to everyone for your help. =20

the changes i made were small/trivial but the only way i could get
them to take effect in a consistant/reliable way was to delete all the
*pyc files under site-packages/MoinMoin and restart twisted/apache
each time i made a change to wiki.py.  for some reason just deleting
wiki.pyc didn't do it.  90% of the time i've spent on this little
project has been fighting some sort of importing issue.

anyway, here are my current changes to make [wiki word] be
interpretted the way i wanted:

$ diff wiki.py wiki.py.0
432c432
<         wikiname =3D word[1:-1]
---
>         wikiname =3D word[2:-2]
958c958
<             rules =3D rules + ur'|(?P<wikiname_bracket>\[.*?\])'
---
>             rules =3D rules + ur'|(?P<wikiname_bracket>\[".*?"\])'

i hope to move from jspwiki to moin soon so i'm going to go through
the standard parser and make it as clean & easy to use as possible,
taking hints from the other wikis i've used.  once i get something
nice i'll post it to the parsermarket in case anyone else might like
it.

on a side note i thought i knew python, but there's been a number of
things i've seen since reading moin code i didn't know you could do.

thanks again for all your help!!!

-jacob


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click