[Seaside] discovering an application's path

Philippe Marschall philippe.marschall at gmail.com
Fri Sep 2 10:18:33 UTC 2011


2011/9/2 Nick Ager <nick.ager at gmail.com>:
> 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?

self application url?

Cheers
Philippe


More information about the seaside mailing list