[Seaside] discovering an application's path
nick.ager at gmail.com
Thu Sep 1 22:41:39 UTC 2011
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside