[Seaside] Custom WAApplications?

Boris Popov boris at deepcovelabs.com
Wed Oct 10 23:43:58 UTC 2007


Also, one small change to make it easier to manipulate URLs for expiry,
since we're moving away from String'y URLs,

WARegistry>>handleExpiredRequest: aRequest
	| url |
	aRequest isXmlHttpRequest ifTrue: [^WAResponse new forbidden].
	url := WAUrl new.
	self expiryPathFor: aRequest on: url.
	url takeServerParametersFromRequest: aRequest.
	aRequest isGet ifTrue: [aRequest fields keysAndValuesDo: [:key
:value | (url isSeasideField: key) ifFalse: [url addParameter: key
value: value]]].
	^self redirectResponseFor: url

WARegistry>>expiryPathFor: request on: url
	url
		addToPath: request url;
		addParameter: 'expired'

Cheers!

-Boris

-- 
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

boris at deepcovelabs.com

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-
> bounces at lists.squeakfoundation.org] On Behalf Of Boris Popov
> Sent: Wednesday, October 10, 2007 4:15 PM
> To: Seaside - general discussion
> Subject: [Seaside] Custom WAApplications?
> 
> What was the latest on removing #applicationClass and allowing custom
> subclasses of WAApplication? I personally couldn't care less for it,
but
> it seems to be the only clean way of overriding #expiryPathFor: and I
do
> recall having this conversation before, just can't recall the
> conclusion.
> 
> Thanks!
> 
> -Boris
> 
> --
> +1.604.689.0322
> DeepCove Labs Ltd.
> 4th floor 595 Howe Street
> Vancouver, Canada V6C 2T5
> http://tinyurl.com/r7uw4
> 
> boris at deepcovelabs.com
> 
> CONFIDENTIALITY NOTICE
> 
> This email is intended only for the persons named in the message
> header. Unless otherwise indicated, it contains information that is
> private and confidential. If you have received it in error, please
> notify the sender and delete the entire message including any
> attachments.
> 
> Thank you.
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the seaside mailing list