[Seaside-dev] moving document handlers to session

Julian Fitzell jfitzell at gmail.com
Sun Jan 22 23:16:16 UTC 2012


On Sun, Jan 22, 2012 at 6:11 PM, Philippe Marschall <
philippe.marschall at gmail.com> wrote:

> 2012/1/22 Julian Fitzell <jfitzell at gmail.com>:
> > 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's missing and then add the document and return a URL...
>
> A filter on session? Yes that should work. That has the advantage that
> session doesn't first have the check whether the request is for a
> document handler. It also gives us a bit more parallelism because it's
> outside the session lock. Additionally you can override
> #initializeFilters and not add it if you don't need it. Registering
> the document handler gets a bit more complicated though because you
> have to find the right filter on session.


Could be session or application in theory, but yeah, our distribution could
set it up on session. Make the query key configurable and someone could put
them anywhere.

That finding-a-filter thing really is a bit annoying...

Julian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside-dev/attachments/20120122/4efa8f31/attachment.htm


More information about the seaside-dev mailing list