[Seaside] trouble accessing session variables..
diego.lont at delware.nl
Wed Oct 3 07:04:15 UTC 2012
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.
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?
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?
> photographer, journalist, visionary
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside