<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18999">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi Tony,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>I read your very interesting evaluation of ST, and 
I agree completelly with your point of view.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>I have been working with ST for about 30 year (with 
a previous exerience of programming of 15 year with COBOL, Fortran RPG and other 
languages) and I am sure you are right; I endorse every word of your 
presentation.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>I will forward your analisys to my students at 
Universitŕ Cattolica del Sacro Cuore di Brescia, where I organized, some years 
ago, an ESUG event.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Thank you very much for your valuable 
work!</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Lorenzo</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=tony.fleig@gmail.com href="mailto:tony.fleig@gmail.com">Tony 
  Fleig</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=seaside@lists.squeakfoundation.org 
  href="mailto:seaside@lists.squeakfoundation.org">Seaside - general 
  discussion</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, January 22, 2011 10:40 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Seaside] Redirect to the 
  previous page</DIV>
  <DIV><BR></DIV>I wrote a somewhat easier-to-understand version of the TF-Login 
  Guide paragraphs here: <A 
  href="http://www.tonyfleig.com/smallthoughts/Seaside/deferredlogin">http://www.tonyfleig.com/smallthoughts/Seaside/deferredlogin</A>.<BR><BR>TF<BR><BR>On 
  Fri, Jan 21, 2011 at 6:13 PM, Tony Fleig &lt;<A 
  href="mailto:tony.fleig@gmail.com">tony.fleig@gmail.com</A>&gt; wrote:<BR>&gt; 
  There is a feature in my TFLogin package that seems like it provides<BR>&gt; 
  something like what you want. Registration confirmation may happen in<BR>&gt; 
  another session, particularly if email confirmation is used. TFLogin<BR>&gt; 
  allows the application to save state in the "pending user" object.<BR>&gt; 
  When the registration is confirmed, that same user object is present<BR>&gt; 
  in the new session and can be used to restore the user's state. This<BR>&gt; 
  can also be used without email confirmation as well in which case it<BR>&gt; 
  works essentially the same way except that no new session is 
  created.<BR>&gt;<BR>&gt; Maybe&nbsp;TFLogin or something along the same lines 
  would work for you.<BR>&gt;<BR>&gt; Here is the relevant excerpt from the 
  TFLogin documentation:<BR>&gt;<BR>&gt; New user initialization<BR>&gt;<BR>&gt; 
  If you provide a one-argument block to the<BR>&gt; 
  TLLoginComponent&gt;&gt;#onRegistration: method, your block will be<BR>&gt; 
  evaluated with pending new user objects before the registration email<BR>&gt; 
  confirmation (if any) is sent. Your block should answer true to allow<BR>&gt; 
  the registration to proceed, or false to cancel the registration<BR>&gt; 
  without further interaction with the user. If you return false, you<BR>&gt; 
  should arrange to inform the user as to why their registration attempt<BR>&gt; 
  is being rejected.<BR>&gt;<BR>&gt; In your onRegistration block, you can 
  populate the new user's<BR>&gt; applicationProperties dictionary with initial 
  values. This can be<BR>&gt; useful if, for example, you have allowed an 
  unregistered user to work<BR>&gt; at your website and for them to save their 
  work you require them to<BR>&gt; register for an account. Since the 
  registration confirmation will take<BR>&gt; place in another session the 
  question arises as to where to save their<BR>&gt; work during the registration 
  confirmation process (and how to dispose<BR>&gt; of it if the registration is 
  not confirmed.) Saving the user's work in<BR>&gt; the pending user object's 
  applicationProperties dictionary provides<BR>&gt; the answer. When the new 
  user logs in the first time, anything placed<BR>&gt; in their 
  applicationProperties dictionary in the onRegister block will<BR>&gt; be 
  present in their TLSession user object.<BR>&gt;<BR>&gt; Here is an example 
  onRegistration block in which userObjects are saved<BR>&gt; in the pending 
  user's<BR>&gt;<BR>&gt; applicationProperties:<BR>&gt; &nbsp; 
  &nbsp;loginComponent: onRegistration: [ :pendingUser |<BR>&gt; &nbsp; &nbsp; 
  &nbsp; &nbsp;pendingUser applicationProperties<BR>&gt; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp;at: 'userObjects'<BR>&gt; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp;put: self userObjects.<BR>&gt; &nbsp; &nbsp; &nbsp; 
  &nbsp;true]<BR>&gt;<BR>&gt; TFLogin is available at <A 
  href="http://www.squeaksource.com/TFLogin">http://www.squeaksource.com/TFLogin</A>.<BR>&gt;<BR>&gt; 
  Regards,<BR>&gt; TF<BR>&gt;<BR>&gt;<BR>&gt; On Fri, Jan 21, 2011 at 12:28 PM, 
  Sebastian Van Lacke<BR>&gt; &lt;<A 
  href="mailto:svanlacke@caesarsystems.com">svanlacke@caesarsystems.com</A>&gt; 
  wrote:<BR>&gt;&gt;<BR>&gt;&gt; Thanks Sebastian,<BR>&gt;&gt;<BR>&gt;&gt; In my 
  website log in is optional, so I can´t dispatch to the login or the 
  application.<BR>&gt;&gt; I have a link at the top of all the pages for login, 
  and when the user click it, I announce that Login was selected, and the root 
  component render it. Then, once the user has logged in I want to take it back 
  to the previous page, where the user has clicked 
  login.<BR>&gt;&gt;<BR>&gt;&gt; Any idea? Has the session the navigation 
  history?<BR>&gt;&gt;<BR>&gt;&gt; Thanks<BR>&gt;&gt;<BR>&gt;&gt; Sebastián Van 
  Lacke<BR>&gt;&gt;<BR>&gt;&gt; 
  _______________________________________________<BR>&gt;&gt; seaside mailing 
  list<BR>&gt;&gt; <A 
  href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</A><BR>&gt;&gt; 
  <A 
  href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>&gt;&gt;<BR>&gt;<BR><BR>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>seaside mailing 
  list<BR>seaside@lists.squeakfoundation.org<BR>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<BR></BLOCKQUOTE></BODY></HTML>