Re: session limitation---
Drew Csillag <[email protected]> Fri, 13 May 2005 06:04:17 -0700 (PDT)
| Newsgroups | gmane.comp.web.skunkweb |
|---|---|
| Message-ID | <[email protected]> |
In these kind of situations where you are changing an object in the dictionary (and not the session dict itself, which it does notice when you change), the session doesn't realize it's dirty and needs to be saved. If you call s.save(), that should take care of it. Drew --- Steve Kieu <[email protected]> wrote: > > Hi, > > Now I have found that I can not store a dictionary in > session. skunkweb does not give even any error message > but it does not work as expected. Example: > > <:set s `CONNECTION.getSession(create=0)`:> > <:if `s==None` :> > <:set s `CONNECTION.getSession(create=1)`:> > <:/if:> > <:if `not s.has_key('j')`:> > <:set tmp `{'a':'rrr','b':1}`:> > <:call `s['j']=tmp`:> > <:else:> > <:call `t=s['j']['b']`:> > <:val `t`:> <br> > <:call `s['j']['b']=t+1`:> > <:/if:> > <:val `s['j']['b']`:> > > s['j']['b'] never incremented as expected. > > This is a kind of annoying, as it is not documented > anywhere, is it a bug? or simply not implemented yet? > if so there should be a warning somewhere in the > documentation that, session currently only used to > store simple data value (even not usable for dict) > > By the way I am using FS session implementation, not > MySQL or postgres. > > > > S.KIEU > > Find local movie times and trailers on Yahoo! Movies. > http://au.movies.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click > _______________________________________________ > Skunkweb-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/skunkweb-list > Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click