[Seaside-dev] Two minor implementation questions

Roger Whitney whitney at cs.sdsu.edu
Tue Oct 16 23:30:13 UTC 2007


Not a minor implementation issue, but also not obvious. I have added  
a section in the class comment (not yet committed) about this so  
others don't make the same mistake as I did.

On Oct 16, 2007, at 8:23 AM, Bany, Michel wrote:

>
> The WADispatcher instances form a tree where WADispatcher default  
> is the
> root. As far as I understand it, there is just one such tree in  
> Squeak.
>
> In my VW port, you may have many of those trees, each being a copy of
> the default tree. The code that seems useless is the code that helps
> propagating changes from any tree to all other trees. This uses the
> regular change/update mechanism. The fact that "self myDependents"
> answers nil indicates a situation where there is only one tree of
> dispatchers. In more complex situations where there are multiple  
> trees,
> the "self changed" is indeed needed if you want to have all the  
> trees in
> synch. So the real question is why do we have multiple dispatcher  
> trees
> in VW?
>
> Well, there is a strong relationship between the url and the name  
> of the
> root dispatcher, because the dispatcher name is used to match the url,
> and in VW there are many urls that can reach Seaside, for instance
> 1. the regular url http://.../seaside/go/counter
> 2. the short url you get with the SeasideShortPath package
> http://.../counter
> 3. the streaming url http://.../seaside/stream/counter
> 4. you get even more urls when running behind Apache
> so, we need a tree of dispatchers for each of those, unless we want to
> break the WADispatcher object into two pieces, one for the url lookup
> and one for the dispatching....
>
> Not a so minor implementation question, after all.
>
> HTH
> Michel.
>
>
>
>
> _______________________________________________
> seaside-dev mailing list
> seaside-dev at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
>
>



----
Roger Whitney              Department of Computer Science
whitney at cs.sdsu.edu        San Diego State University
http://www.eli.sdsu.edu/   San Diego, CA 92182-7720




More information about the seaside-dev mailing list