Re: Pickling Sessions (or lists of instances)

2006-09-27 Thread Tom Smith
On 28 Sep 2006, at 00:56, Steven Armstrong wrote: > > On 09/27/06 23:49, Tom Smith wrote: >> Thanks, it all seems to work except for when I store a list of >> objects in the database and try to get it out I get a string (that >> looks like a list of objects) >> > products =

Re: Pickling Sessions (or lists of instances)

2006-09-27 Thread Steven Armstrong
On 09/27/06 23:49, Tom Smith wrote: > Thanks, it all seems to work except for when I store a list of > objects in the database and try to get it out I get a string (that > looks like a list of objects) > > >>> products = Product.objects.filter(title__contains='Dog')[:10] > >>> sub =

Re: Pickling Sessions (or lists of instances)

2006-09-27 Thread Tom Smith
Thanks, it all seems to work except for when I store a list of objects in the database and try to get it out I get a string (that looks like a list of objects) >>> products = Product.objects.filter(title__contains='Dog')[:10] >>> sub = Subscription(email="[EMAIL PROTECTED]", name="Tom

Re: Pickling Sessions (or lists of instances)

2006-09-27 Thread Steven Armstrong
On 09/27/06 16:45, Tom Smith wrote: > Hello > > currently I am storing a list of python instances in the > request.session but would like to make a persistent copy of this list > and store it permanently... > > I don't want to just make the timeout of the session a long time in > the

Pickling Sessions (or lists of instances)

2006-09-27 Thread Tom Smith
Hello currently I am storing a list of python instances in the request.session but would like to make a persistent copy of this list and store it permanently... I don't want to just make the timeout of the session a long time in the future, because each user could have multiple lists of