[Seaside] discovering an application's path

Julian Fitzell jfitzell at gmail.com
Fri Sep 2 07:39:11 UTC 2011


I'm not quite sure what you mean by dispatcher path, but looking at what I
think the code is returning, is the following the same or do you have
something else in mind?

self application name

On Thu, Sep 1, 2011 at 11:41 PM, Nick Ager <nick.ager at gmail.com> wrote:

> Hi,
>
> I've come up with the following code to identify an application's
> dispatcher path:
>
> | requestContext appPath dispatcher |
>  requestContext := self requestContext.
> dispatcher := requestContext handlers detect: [ :each | each isDispatcher ]
> ifNone: [ nil ].
>  appPath := dispatcher isNil
> ifTrue: [ '' ]
> ifFalse: [ dispatcher handlers keyAtValue: requestContext application ].
>
> is there an easier/better way?
>
> Thanks
>
> Nick
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110902/1430c355/attachment-0001.htm


More information about the seaside mailing list