Mercurial > genshi > genshi-test
view examples/tutorial/geddit/templates/index.xml @ 734:a61ab7bbe12d
Fixed some unintuitive behaviour in `Transformer.{cut,copy}`.
The old behaviour was to copy all selected events in the stream before passing
to the next transform. The new behaviour is to copy only a single contiguous
block before yielding to the next trasnform.
The previous behaviour can be preserved with the following construct:
`...copy(buffer, accumulate=True).buffer()...`
author | athomas |
---|---|
date | Wed, 04 Jun 2008 13:02:00 +0000 |
parents | 693a7212b348 |
children |
line wrap: on
line source
<?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:py="http://genshi.edgewall.org/"> <title>Geddit News</title> <id href="${url('/')}"/> <link rel="alternate" href="${url('/')}" type="text/html"/> <link rel="self" href="${url('/feed/')}" type="application/atom+xml"/> <updated>${links[0].time.isoformat()}</updated> <entry py:for="link in reversed(links)"> <title>${link.url}</title> <link rel="alternate" href="${link.url}" type="text/html"/> <link rel="via" href="${url('/info/%s/' % link.id)}" type="text/html"/> <id>${url('/info/%s/' % link.id)}</id> <author> <name>${link.username}</name> </author> <updated>${link.time.isoformat()}</updated> <summary>${link.title}</summary> </entry> </feed>