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
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
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)
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