Texinfo (http://www.gnu.org/software/texinfo/texinfo.html) is another alternative. It can be converted to GNU info, HTML and DVI (and from DVI to PDF). Actually, the DVI part uses TeX macros, so a texinfo source file is also used as input to TeX.
Magnus From [EMAIL PROTECTED] Fri Sep 9 12:31:31 2005 From: [EMAIL PROTECTED] (James Bunton) Date: Fri Sep 9 12:31:35 2005 Subject: [py-transports] AttributeError exception in 0.9.5 In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> Looks like somebody sent some XML to PyMSNt that it didn't understand very well. Thanks for the report. If you find out how to reproduce it I'd love to know what XML caused this. --- James On 09/09/2005, at 3:37 PM, Matthew Nourse wrote: > Hi, > > I found the error below on the terminal shortly after starting PyMSNt > 0.9.5. I haven't been able to duplicate the problem yet. > > > > Exception occured! Check the log! > Traceback (most recent call last): > File "/usr/lib/python2.3/site-packages/twisted/internet/default.py", > line 526, in doSelect > _logrun(selectable, _drdw, selectable, method, dict) > File "/usr/lib/python2.3/site-packages/twisted/python/log.py", line > 65, in callWithLogger > callWithContext({"system": lp}, func, *args, **kw) > File "/usr/lib/python2.3/site-packages/twisted/python/log.py", line > 52, in callWithContext > return context.call({ILogContext: newCtx}, func, *args, **kw) > File "/usr/lib/python2.3/site-packages/twisted/python/context.py", > line 43, in callWithContext > return func(*args,**kw) > --- <exception caught here> --- > File "/usr/lib/python2.3/site-packages/twisted/internet/default.py", > line 535, in _doReadOrWrite > why = getattr(selectable, method)() > File "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line > 255, in doRead > return self.protocol.dataReceived(data) > File "/opt/jabber-transports/PyMSNt/src/tlib/xmlstream.py", line 159, > in dataReceived > self.stream.parse(buf) > File "/opt/jabber-transports/PyMSNt/src/tlib/domish.py", line 598, in > parse > self.parser.Parse(buffer) > File "/opt/jabber-transports/PyMSNt/src/tlib/domish.py", line 635, in > _onEndElement > self.ElementEvent(self.currElem) > File "/opt/jabber-transports/PyMSNt/src/tlib/xmlstream.py", line 180, > in onElement > self.dispatch(element) > File "/usr/lib/python2.3/site-packages/twisted/xish/utility.py", line > 139, in dispatch > callbacklist.callback(object) > File "/usr/lib/python2.3/site-packages/twisted/xish/utility.py", line > 50, in callback > methodwrapper(*args, **kwargs) > File "/usr/lib/python2.3/site-packages/twisted/xish/utility.py", line > 34, in __call__ > self.method(*nargs, **nkwargs) > File "/opt/jabber-transports/PyMSNt/src/disco.py", line 92, in onIq > handler(el) > File "/opt/jabber-transports/PyMSNt/src/register.py", line 72, in > incomingRegisterIq > self.updateRegistration(incoming) > File "/opt/jabber-transports/PyMSNt/src/register.py", line 158, in > updateRegistration > self.badRequestReply(incoming) > File "/opt/jabber-transports/PyMSNt/src/register.py", line 170, in > badRequestReply > self.pytrans.send(reply) > File "/opt/jabber-transports/PyMSNt/src/tlib/jabber/component.py", > line 96, in send > self.parent.send(obj) > File "/opt/jabber-transports/PyMSNt/src/tlib/jabber/component.py", > line 162, in send > self.xmlstream.send(obj) > File "/opt/jabber-transports/PyMSNt/src/tlib/xmlstream.py", line 193, > in send > obj = obj.toXml() > File "/opt/jabber-transports/PyMSNt/src/tlib/domish.py", line 399, in > toXml > s.serialize(self, closeElement) > File "/opt/jabber-transports/PyMSNt/src/tlib/domish.py", line 90, in > serialize > write(" %s:%s='%s'" % (self.getPrefix(k[0]), k[1], escapeToXml(v, > 1)).encode("utf-8")) > exceptions.AttributeError: 'tuple' object has no attribute 'encode' > > > It looks to me like line 90 of domish.py is unchanged in the latest > source. I don't speak Python well enough to contribute a patch, my > apologies. > > Best Regards, > Matt > > > _______________________________________________ > py-transports mailing list > py-transports@blathersource.org > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports >