Changeset 3757:791381377217 in livinglogic.python.xist

Show
Ignore:
Timestamp:
04/10/09 18:34:00 (10 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Rewrap long lines. Shorted traceback.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • docs/XIST_Howto.xml

    r3591 r3757  
    498498<prompt>&gt;&gt;&gt; </prompt><input>s = '&lt;cool adj="pretty"&gt;&lt;python/&gt;&lt;/cool&gt;'</input> 
    499499<prompt>&gt;&gt;&gt; </prompt><input>node = parsers.parsestring(s)</input> 
    500 /Users/walter/checkouts/LivingLogic.Python.xist/src/ll/xist/xsc.py:2006: IllegalAttrValueWarning: Attribute value u'pretty' not allowed for __main__:cool.Attrs.adj 
     500/Users/walter/checkouts/LivingLogic.Python.xist/src/ll/xist/xsc.py:2006: \ 
     501IllegalAttrValueWarning: Attribute value u'pretty' not allowed for __main__:cool.Attrs.adj 
    501502  warnings.warn(IllegalAttrValueWarning(self)) 
    502503</tty> 
     
    510511<prompt>&gt;&gt;&gt; </prompt><input>node = cool(python(), adj=u"pretty")</input> 
    511512<prompt>&gt;&gt;&gt; </prompt><input>print node.bytes()</input> 
    512 /Users/walter/checkouts/LivingLogic.Python.xist/src/ll/xist/xsc.py:2006: IllegalAttrValueWarning: Attribute value u'pretty' not allowed for __main__:cool.Attrs.adj 
     513/Users/walter/checkouts/LivingLogic.Python.xist/src/ll/xist/xsc.py:2006: \ 
     514IllegalAttrValueWarning: Attribute value u'pretty' not allowed for __main__:cool.Attrs.adj 
    513515  warnings.warn(IllegalAttrValueWarning(self)) 
    514516&lt;cool adj="very"&gt;&lt;python /&gt;&lt;/cool&gt; 
     
    530532<prompt>&gt;&gt;&gt; </prompt><input>node = html.img(src="eggs.png")</input> 
    531533<prompt>&gt;&gt;&gt; </prompt><input>print node.bytes()</input> 
    532 /home/walter/pythonroot/ll/xist/xsc.py:2046: RequiredAttrMissingWarning: Required attribute 'alt' missing in ll.xist.ns.html:img.Attrs. 
     534/home/walter/pythonroot/ll/xist/xsc.py:2046: \ 
     535RequiredAttrMissingWarning: Required attribute 'alt' missing in ll.xist.ns.html:img.Attrs. 
    533536  warnings.warn(errors.RequiredAttrMissingWarning(self, attrs.keys())) 
    534537&lt;img src="eggs.png" /&gt; 
     
    794797<prompt>&gt;&gt;&gt; </prompt><input>print xsc.Comment(s).bytes(encoding="ascii")</input> 
    795798Traceback (most recent call last): 
    796   File "&lt;stdin&gt;", line 1, in &lt;module&gt; 
    797   File "/Users/walter/checkouts/LivingLogic.Python.xist/src/ll/xist/xsc.py", line 934, in bytes 
    798     return "".join(self.iterbytes(base, publisher, **publishargs)) 
    799   File "/Users/walter/checkouts/LivingLogic.Python.xist/src/ll/xist/publishers.py", line 244, in publish 
    800     for part in self.node.publish(self): 
    801   File "/Users/walter/checkouts/LivingLogic.Python.xist/src/ll/xist/xsc.py", line 1798, in publish 
    802     yield publisher.encode(content) 
    803   File "/Users/walter/checkouts/LivingLogic.Python.xist/src/ll/xist/publishers.py", line 104, in encode 
    804     return self.encoder.encode(text) 
    805   File "/Users/walter/checkouts/LivingLogic.Python.core/src/ll/xml_codec.py", line 142, in encode 
    806     return self.encoder.encode(input, final) 
     799<rep>...</rep> 
    807800  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/ascii.py", line 22, in encode 
    808801    return codecs.ascii_encode(input, self.errors)[0]