Thinking totally off the top of my head, but what if it was implemented as a filter? A few helper methods on WARequestHandler (or subclasses) could add an instance if it&#39;s missing and then add the document and return a URL...<div>

<br></div><div>Julian<br><br><div class="gmail_quote">On Sun, Jan 22, 2012 at 1:57 PM, Philippe Marschall <span dir="ltr">&lt;<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I hope an can attend the Pharo Sprint at Feb 18./19. and repurpose it<br>
to hack on Seaside. One thing I&#39;d like to do is moving the document<br>
handlers from registry to session.<br>
<br>
Pros:<br>
 * simple<br>
 * adding a document handler no longer potentially expires a session<br>
 * expiring a session expires all it&#39;s document handlers<br>
 * session tracking code becomes much simpler<br>
<br>
Cons:<br>
 * #urlXXX methods on WARenderContext only work with sessions (a<br>
fallback could be added in theory)<br>
 * #urlXXX methods on WARenderContext need to become class extensions<br>
of the Seaside-Session package<br>
 * not really clean framework-framework Endlösung<br>
<br>
Cheers<br>
Philippe<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></div>