[Seaside] discovering an application's path
philippe.marschall at gmail.com
Fri Sep 2 10:18:33 UTC 2011
2011/9/2 Nick Ager <nick.ager at gmail.com>:
> I've come up with the following code to identify an application's dispatcher
> | 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?
More information about the seaside