Changeset 3065:7e3828a8bd3f in livinglogic.python.xist

Show
Ignore:
Timestamp:
12/19/07 16:57:54 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Update NEWS entries in NEWS.rst too.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • NEWS.rst

    r3063 r3065  
    3333    passed as a string. 
    3434 
     35*   Constructing trees can now be done with ``with`` blocks. Code looks like this:: 
     36     
     37        with xsc.Frag() as node: 
     38            +xml.XML() 
     39            +html.DocTypeXHTML10transitional() 
     40            with html.html(): 
     41                with html.head(): 
     42                    +meta.contenttype() 
     43                    +html.title("Example page") 
     44                with html.body(): 
     45                    +html.h1("Welcome to the example page") 
     46                    with html.p(): 
     47                        +xsc.Text("This example page has a link to the ") 
     48                        +html.a("Python home page", href="http://www.python.org/") 
     49                        +xsc.Text(".") 
     50     
     51        print node.conv().bytes(encoding="us-ascii") 
     52 
     53    Also the function :func:`xsc.append` has been renamed to :func:`add` and 
     54    supports ``with`` blocks now instead of XPython_. 
     55 
     56    .. _XPython: http://codespeak.net/svn/user/hpk/talks/xpython-talk.txt 
     57 
    3558*   The ``media`` attribute of :class:`html.link` and :class:`html.style` now has 
    3659    a method :meth:`hasmedia`. 
     
    4265    new method :meth:`iterstring` has been added. 
    4366 
    44 * :class:`ll.xist.ns.xml.XML10` is gone now. Use :class`ll.xist.ns.xml.XML` 
    45   instead. 
     67*   :class:`ll.xist.ns.xml.XML10` is gone now. Use :class`ll.xist.ns.xml.XML` 
     68    instead. 
     69 
     70*   :func:`xsc.tonode` now will raise an exception when it can't handle an 
     71    argument instead of issuing a warning. 
    4672 
    4773*   A class attribute :attr:`empty` inside element classes will now no longer get