In my Seaside app, I want to specify a particular URL to go to in case the
session expires. As far as I can tell, the way to do this is to use #expiryPathFor: from WAApplication/WARegistry. However, I don't know how to get at the WAApplication/WARegistry object for my app. Can anyone tell me? Thanks, Richard _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
>>>>> "Richard" == Richard K Eng <[hidden email]> writes:
Richard> In my Seaside app, I want to specify a particular URL to go to in case the Richard> session expires. As far as I can tell, the way to do this is to use Richard> #expiryPathFor: from WAApplication/WARegistry. However, I don't know how to Richard> get at the WAApplication/WARegistry object for my app. Can anyone tell me? MyApp class>>#initialize "self initialize" | thisApplication | super initialize. thisApplication := self registerAsApplication: #myapplicationprefix. " your code would go here " thisApplication expiryPathFor: ... or something like that (untested). But that's where you can get at the application object. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[hidden email]> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
self session application
Cheers! -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] 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: [hidden email] [mailto:seaside- > [hidden email]] On Behalf Of Randal L. Schwartz > Sent: Wednesday, May 14, 2008 10:30 AM > To: Richard K Eng > Cc: Seaside - general discussion > Subject: Re: [Seaside] expiryPathFor: > > >>>>> "Richard" == Richard K Eng <[hidden email]> writes: > > Richard> In my Seaside app, I want to specify a particular URL to go > case the > Richard> session expires. As far as I can tell, the way to do this is to > use > Richard> #expiryPathFor: from WAApplication/WARegistry. However, I don't > know how to > Richard> get at the WAApplication/WARegistry object for my app. Can anyone > tell me? > > MyApp class>>#initialize > "self initialize" > | thisApplication | > super initialize. > thisApplication := self registerAsApplication: #myapplicationprefix. > " your code would go here " > thisApplication expiryPathFor: ... > > or something like that (untested). But that's where you can get at > the application object. > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 > 0095 > <[hidden email]> <URL:http://www.stonehenge.com/merlyn/> > Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. > See http://methodsandmessages.vox.com/ for Smalltalk and Seaside > discussion > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Richard Eng
On May 14, 2008, at 6:49 PM, Richard K Eng wrote:
> In my Seaside app, I want to specify a particular URL to go to in > case the session expires. As far as I can tell, the way to do this > is to use #expiryPathFor: from WAApplication/WARegistry. However, I > don't know how to get at the WAApplication/WARegistry object for my > app. Can anyone tell me? > > Thanks, > Richard See http://kentreis.wordpress.com/2008/01/22/showing-a-session-expired-notice-in-seaside/ for an example. James _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Randal L. Schwartz
On May 14, 2008, at 7:30 PM, Randal L. Schwartz wrote:
>>>>>> "Richard" == Richard K Eng <[hidden email]> writes: > > Richard> In my Seaside app, I want to specify a particular URL to go > to in case the > Richard> session expires. As far as I can tell, the way to do this > is to use > Richard> #expiryPathFor: from WAApplication/WARegistry. However, I > don't know how to > Richard> get at the WAApplication/WARegistry object for my app. Can > anyone tell me? > > MyApp class>>#initialize > "self initialize" > | thisApplication | > super initialize. > thisApplication := self registerAsApplication: #myapplicationprefix. > " your code would go here " > thisApplication expiryPathFor: ... > > or something like that (untested). But that's where you can get at > the application object. While it is true that this gives you the application object, #expiryPathFor: is more of a getter than a setter. It *returns* a new path, it doesn't set a path. What Richard should have said instead of "the way to do this is to use #expiryPathFor:' was "the way to do this is to *override* #expiryPathFor:'. And then the question becomes how to create (not access) an application as a different class. James _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Boris Popov, DeepCove Labs (SNN)
Interestingly, while researching this issue I came across a bug report
from Boris on how to specify a different application. See http://lists.squeakfoundation.org/pipermail/seaside/2007-June/012613.html where Philippe suggests that "we think [specifying an expired handler] should be doable easier than by subclassing WAApplication." I can't find evidence that this was ever made easier. James On May 14, 2008, at 7:32 PM, Boris Popov wrote: > self session application > > Cheers! > > -Boris _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |