On Wed, 2011-08-24 at 22:07 +0200, Sebastien Douche wrote: > On Wed, Aug 24, 2011 at 06:55, Chris McDonough <[email protected]> wrote: > > A "What's New In Pyramid 1.2" document exists at > > http://docs.pylonsproject.org/projects/pyramid/1.2/whatsnew-1.2.html > > describing the differences between 1.1 and 1.2. > > Yeah \o/. Well I admit I skimmed over the doc but I don't fully > understand Tweens. Can you explain a bit more (with some real > examples)?
If you know how WSGI middleware works (a functional composition that accepts a request and returns a response), you know very generally how tweens work. If you don't know how WSGI middleware works, though, you might take a look at http://docs.repoze.org/moonshining/pep333.html#middleware first. The best real-world examples of tweens are in the code of the following packages: - https://github.com/Pylons/pyramid_debugtoolbar - https://github.com/Pylons/pyramid_exclog - https://github.com/Pylons/pyramid_tm (master only) Each defines a tween and registers it into the Pyramid tween chain. - C -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
