<br><br><div class="gmail_quote">On Mon, Jul 20, 2009 at 5:01 PM, Paul DeBruicker <span dir="ltr">&lt;<a href="mailto:pdebruic@gmail.com">pdebruic@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi -<br>
<br>
<br>
I am in the initial stages of porting some code to Seaside2.9a3.  The<br>
code works in Seaside 2.8.4. When a user logs in I store their user<br>
info in the session in an instance variable called user.  In Seaside<br>
2.8.4 calling &#39;self session user userId&#39; would return the user&#39;s user<br>
id, after they&#39;d logged in.  With whatever I&#39;ve done + 2.9a3 calling:<br>
<br>
<br>
self session user userId<br>
<br>
<br>
inside a renderContentOn: method throws an error that says<br>
UndefinedObject(Object)&gt;&gt;doesNotUnderstand: #userId.  In the debugger<br>
for that error if I try to explore &#39;self session&#39; I get a<br>
WARequestContextNotFound error.  I do include<br>
<br>
<br>
webapp preferencesAt: #sessionClass add: AMSession.<br>
<br>
<br>
in the initialize statement for the application.  I&#39;m willing to<br>
believe that my login function is also a little off because I set the<br>
session ivar &#39;user&#39; with &#39;self session user: user&#39;<br>
<br>
How do I store and access information in the session in Seaside 2.9?<br>
Is it the same as 2.8.4 and I&#39;ve just got another error somewhere else<br>
thats just showing up here?  I&#39;d appreciate any suggestions for<br>
remedying my lack of understanding.  Thanks</blockquote><div><br>I never tested 2.9 but reading here: <a href="http://www.seaside.st/documentation/migration/28to29">http://www.seaside.st/documentation/migration/28to29</a><br>
<br>it says: <br><br>&quot;<code>#application</code> and <code>#session</code> will raise a
WARequestContextNotFound error if no current request context is found.
This should only happen outside of the scope of a Seaside request. If
your objects are using these methods as part of their display string
(they probably shouldn’t) you will want to catch the error to avoid
problems when opening an Inspector on your object.&quot;<br><br>I don&#39;t know if this help.<br><br>best,<br><br>Mariano<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
<br>
Paul<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div><br>