Re: Re: genericwiki with PB 1.1?

Matej Cepl <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Organization Northeastern University, Boston, MA
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

will guaraldi wrote:
> I'm not sure what makes you think it's an API issue.  It's in the parse
> function of genericwiki--nothing we've done would affect that.  I think
> it's more likely that it's either a configuration issue or there's
> something funny about the entry.

Well, apparently the problem is that wikibaseurl variable, which is a
parameter of parse is empty (or undefined).

The only method how to make it work, was to set

py['parser'] = 'genericwiki'

and then change the end of initialize function in
pyblosxom/Pyblosxom/pyblosxom.py to this:

        # entryparser callback is run here first to allow other plugins
        # register what file extensions can be used
        data['extensions'] = tools.run_callback("entryparser",
                                        #{'txt': blosxom_entry_parser},
                                        {'wiki': blosxom_entry_parser},
                                        mappingfunc=lambda x,y:y,
                                        defaultfunc=lambda x:x)

However, that is of course suboptimal.

> When you say "from pyblosxom.sf.net webpage", what version of
> genericwiki.py are you actually using?  There are two contributed plugin

contrib.1.1.1.tar.gz

> Also, can you tell what entry it's choking on?  It'd be nice to see the
> text of the entry.  That also might help.

It has nothing to do with what is the content of datadir, but just for your
convenience I have uploaded tarball with the raw state of my datadir to
<http://www.ceplovi.cz/matej/tmp/blogdata.tar.bz2>. Do you see anything
strange about that data?

Thanks for any reply,

        Matej

- -- 
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
Roses are red;
    Violets are blue.
I'm schizophrenic,
    And so am I.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCd8rI4J/vJdlkhKwRApZOAJ9ARSJJJFl/0g8hknxiaPqO4cUE3ACdFOZY
WVfHlV211M14mlpkxING9QU=
=goqk
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
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.