There isn't a test method in 2.8 as far as I know, but if you follow the sequences of #performRequest: in WAApplication and find the point at which it resumes the continuation found by looking up the actionKey (_k). Once there, the class of the continuation will tell you which phase you're in. It would be much nicer if there were an easier way to tell but that's the solution I came up with when I recently needed to know this as well. Perhaps this has been solved more elegantly in 2.9.<br>
<br><div class="gmail_quote">On Mon, Mar 9, 2009 at 5:23 PM, Sebastian Sastre <span dir="ltr"><<a href="mailto:ssastre@seaswork.com">ssastre@seaswork.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi seasiders,<br>
I need a hint on how to be able to discern when a request is going to produce an<br>
action phase or a render phase.<br>
I don't see testing methods in WARequest to ask this. How can I deduct what is<br>
going to happen?<br>
thanks,<br>
sebastian<br>
PD: the applicability of this is interesting: I want to know if the transaction<br>
filter needs to commit or can use a read only transaction<br>
<br>
_______________________________________________<br>
seaside-dev mailing list<br>
<a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev</a><br>
</blockquote></div><br>