Re: DSMLParser example

2008-12-18 Thread Michael Ströder
Yves Dorfsman wrote: Michael: Can you confirm this is the way it was supposed to be used, I mean, is this class the sort of argument that should be used for ContentHandler ? Yves Dorfsman wrote: I have tried: x = dsml.DSMLParser(input_file, dsml.DSMLv1Handler) I have noted your

Re: DSMLParser example

2008-12-17 Thread Yves Dorfsman
Michael Ströder wrote: Yves Dorfsman wrote: Is there a simple example for dsml.DSMLParser() somewhere ? No, this module is rather unmaintained. IIRC it mainly works like module ldif: You should sub-class dsml.DSMLParser implementing a custom method .handle(). Note that it only supports

Re: DSMLParser example

2008-12-17 Thread Michael Ströder
Yves Dorfsman wrote: Michael Ströder wrote: Yves Dorfsman wrote: But eventually it fails with an HTTP 404 error... ??? Yes I was confused too. [..] File /usr/lib/python2.5/urllib2.py, line 506, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

DSMLParser example

2008-12-16 Thread Yves Dorfsman
Is there a simple example for dsml.DSMLParser() somewhere ? I am trying to use it, but getting errors. The documentation does not explain what ContentHandlerClass is supposed to be. I have tried: x = dsml.DSMLParser(input_file, dsml.DSMLv1Handler) But eventually it fails with an HTTP 404