On Oct 15, 2005, at 10:01 PM, Art wrote:


Did anybody here tried TG with CherryFlow and continuations ?
Any comments would be appreciated.

No, but I'm familiar with them because they are a part of the Subway
project.

Flows are cool, but come with some limitations. Because they rely
on saving generators in the session, and because you can't pickle
a generator, you'll be limited to using RamStorage sessions. That
means your TG/Subway app can't run multi-process and still have
working flows.

And flows don't work with the back and forward buttons unless you
are using stackless python (unlikely?) or have installed the statesaver
module. Statesaver is easy to install though.

Also the milestone feature of Subway's views don't currently work.
Milestones are meant to be a one-way door as in once your flow hits
a milestone, you can't use the back button in your browser to flow
back past that milestone no matter what.

You can see flows in action in a Subway app here:

http://subway.python-hosting.com/file/sandbox/deelan/bikini/ controller/entry.py

Search for @flow to see the controller methods that use flows. Notice how those methods yield a view and seem to expect the user to return to the same method and have program flow restored to the code immediately after the last yield statement.
That's just what flows do for you.

Reply via email to