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 note

Re: DSMLParser example

2008-12-17 Thread Yves Dorfsman
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 observation about dsml v1,

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, hdr

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 su

Re: DSMLParser example

2008-12-17 Thread Michael Ströder
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 DMSLv1 which is not what you wa