[Seaside] trouble accessing session variables..
Diego Lont
diego.lont at delware.nl
Wed Oct 3 07:04:15 UTC 2012
Hi Sergio,
I know that debugging in a session is tricky, because once you halt: you are accessing this from a different context. What I usually do is assign the thing that I am interested in to a local variable, and then inspect. That is:
….
temp := self session oauthToken.
self halt.
…
This allows me to inspect / explore the variables I am interested in.
By the way: I assume you derive from WASession and set the session class for your app?
Diego
On Oct 3, 2012, at 7:38 AM, sergio_101 wrote:
> okay, i know i am just doing something silly.. and it's late.. but i
> have spent WAY too much time on this..
>
> i set up a WASession for my app, and it has an instance variable
> called 'oauthToken'..
>
> in my app, i can do this:
>
> self session inspect
>
> and see that oauthToken indeed has a value..
>
> but if i go:
>
> self session oauthToken inspect
>
> it bombs out as 'Undefined Object'
>
> i have a conditional running against this.. so
>
> self session oauthToken isNil "this is always true, even though this
> variable is set.."
>
> anyone have any idea what i am doing wrong?
>
> thanks!
>
>
>
> --
> ----
> peace,
> sergio
> photographer, journalist, visionary
>
> http://www.ThoseOptimizeGuys.com
> http://www.CodingForHire.com
> http://www.coffee-black.com
> http://www.painlessfrugality.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
More information about the seaside
mailing list