Help? Spice Session1?
"Jacek Jarvis" <[email protected]> Wed, 31 Jan 2007 14:01:50 -0400
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
Hey
Im new to Spyce and to this mailing list.
I was trying to run the following piece of code and I dont understand why
it doesnt work as I would like it to on my machine
Im using WinXP, Python2.4.4 and spyce-2.1
[[.import name=session1 args="'session_dir', 'C:\\tmp'"]]
[[\
test = {
'name': 'MarketWatch',
'is_admin': True,
'user': 'market',
'user_group': 1L,
'is_suser': True,
'email': '[email protected]',
'login_time': '31 Jan, 2007 13:23:55'
}
#test={'a':1, 'b':2, 'c':3}
print test
sessionid=session1.set(test, 21600)
]]
<br />
<hr />
<h2> output </h2>
[[\
s = session1.get(sessionid)
print s
]]
The interesting thing is that if I uncomment the following line:
test={'a':1, 'b':2, 'c':3}
and override my initial value of test, the code works,
That is:
It creates a session under the C:\tmp directory and outputs the value proper
value ofs.
However, if I use the larger dictionary- no session is created. And my s
output value is: None
Another interesting point to note is that the above code basically runs
properly on a Unix box and Mac
Finally, Im using session1 because Im dealing with some legacy code, and
very much like to solve the problem without using the newer session
construct
Can anyone please help me out?
Thanks a lot in advance
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Spyce-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spyce-users