Re: del session variables

2008-12-20 Thread Jeff FW
Wow, you're right. I've been programming Python for years, and I somehow never noticed that. I'll be quiet not :-) On Dec 17, 6:33 pm, Malcolm Tredinnick wrote: > On Wed, 2008-12-17 at 15:09 -0800, Jeff FW wrote: > > You've got a space in between "HttpResponseRedirect" and "('../ > > shop')" .

Re: del session variables

2008-12-17 Thread Malcolm Tredinnick
On Wed, 2008-12-17 at 15:09 -0800, Jeff FW wrote: > You've got a space in between "HttpResponseRedirect" and "('../ > shop')" . Which is perfectly legal and unambiguous in Python. That isn't a problem. Regards, Malcolm --~--~-~--~~~---~--~~ You received this m

Re: del session variables

2008-12-17 Thread Malcolm Tredinnick
On Wed, 2008-12-17 at 11:44 -0800, Bobby Roberts wrote: > > > Have a look at theflush() method; I believe that might well be close to > > what you are after. > > > > Regards, > > Malcolm > > > I'm trying to call the view below: > > def DoSessionReset(request): > request.session.flush() >

Re: del session variables

2008-12-17 Thread Jeff FW
You've got a space in between "HttpResponseRedirect" and "('../ shop')" . On Dec 17, 2:44 pm, Bobby Roberts wrote: > > Have a look at theflush() method; I believe that might well be close to > > what you are after. > > > Regards, > > Malcolm > > I'm trying to call the view below: > > def DoSessi

Re: del session variables

2008-12-17 Thread Bobby Roberts
> Have a look at theflush() method; I believe that might well be close to > what you are after. > > Regards, > Malcolm I'm trying to call the view below: def DoSessionReset(request): request.session.flush() return HttpResponseRedirect ('../shop') I'm getting this error: TypeError at

Re: del session variables

2008-11-20 Thread Malcolm Tredinnick
On Thu, 2008-11-20 at 14:06 -0800, Bobby Roberts wrote: > is there a way to kill a session rather than running a del statement > on each session variable? I know in .asp you can simply say > session.abandon. Is there an equivalent with django? Django has this really nifty feature (I believe AS

Re: del session variables

2008-11-20 Thread Andy McKay
On 20 Nov 2008, at 22:06, Bobby Roberts wrote: > is there a way to kill a session rather than running a del statement > on each session variable? I know in .asp you can simply say > session.abandon. Is there an equivalent with django? In the session documentation there are mentions of: clear()

del session variables

2008-11-20 Thread Bobby Roberts
is there a way to kill a session rather than running a del statement on each session variable? I know in .asp you can simply say session.abandon. Is there an equivalent with django? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the