[Seaside] discovering an application's path
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:
> 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?
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside