Re: [Zope] persistence and dictionaries

2000-12-09 Thread Matt
ct is called. I am wondering if this also answers my question in my very last email titled Re: [Zope] persistence and dictionaries - new light where I found that anything called within my manage_edit(self, title, REQUEST=None) method was persisted, but that if I did the same things in another m

Re: [Zope] persistence and dictionaries

2000-12-09 Thread Tres Seaver
Matt <[EMAIL PROTECTED]> wrote: > > Chris, this was my original confusion the two places below where you say > > "You can put instances which do not inherit from Persistence.Persistent in > your database. They just won't "stick". They'll hang around until the > server is restarted or for

Re: [Zope] persistence and dictionaries - new light

2000-12-08 Thread Matt
ec 2000, Jonothan Farr wrote: > > > Maybe I'm mistaken, but it seems like you can put an instance of an > > object that > > > doesn't inherit from Persistent into the ZODB just fine, but its > > contents won't > > > persist, so you'll always end

Re: [Zope] persistence and dictionaries

2000-12-08 Thread Matt
: "Matt" <[EMAIL PROTECTED]> > To: "Jonothan Farr" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, December 08, 2000 2:39 PM > Subject: Re: [Zope] persistence and dictionaries > > > Ok, here are some of the offending bits out of

Re: [Zope] persistence and dictionaries

2000-12-08 Thread Jonothan Farr
Jonothan Farr wrote: > > Maybe I'm mistaken, but it seems like you can put an instance of an > object that > > doesn't inherit from Persistent into the ZODB just fine, but its > contents won't > > persist, so you'll always end up with a copy of the object

Re: [Zope] persistence and dictionaries

2000-12-08 Thread Jonothan Farr
--- Original Message - From: "Chris McDonough" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, December 08, 2000 11:57 AM Subject: Re: [Zope] persistence and dictionaries > Huh. If they do, it's by chance only. I'd be h

Re: [Zope] persistence and dictionaries

2000-12-08 Thread Matt
first added > to the database. > > --jfarr > > - Original Message - > From: "Chris McDonough" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Friday, December 08, 2000 11:57 AM > Subject: Re: [Zope] persis

Re: [Zope] persistence and dictionaries

2000-12-08 Thread Matt
Chris, this was my original confusion the two places below where you say "You can put instances which do not inherit from Persistence.Persistent in your database. They just won't "stick". They'll hang around until the server is restarted or for an undetermined amount of time during normal

Re: [Zope] persistence and dictionaries

2000-12-08 Thread Chris McDonough
ay, December 08, 2000 2:30 PM Subject: Re: [Zope] persistence and dictionaries > Chris, this was my original confusion the two places below where you say > > "You can put instances which do not inherit from Persistence.Persistent in > your database. They just won't &

Re: [Zope] persistence and dictionaries

2000-12-08 Thread Chris McDonough
> Thanks for the reply, that is really useful. There are a couple of things > though that still don't add up. Firstly, you say below, as do all the ZODB > documents that "Custom" classes can certainly persist, they just need to mix in > the "Persistence.Persistent" class as a base class. Well,

Re: [Zope] persistence and dictionaries

2000-12-07 Thread Matt
Thanks for the reply, that is really useful. There are a couple of things though that still don't add up. Firstly, you say below, as do all the ZODB documents that "Custom" classes can certainly persist, they just need to mix in the "Persistence.Persistent" class as a base class. Well, in my ex

Re: [Zope] persistence and dictionaries

2000-12-07 Thread Chris McDonough
All pickleable Python primitive types (strings, dictionaries, lists, Nones, integers, floats, longs, etc.) can live in the ZODB. They can persist just like instances that inherit from the Persistent class. I think you read a little too much in to the fact that you need to "treat mutable objects

[Zope] persistence and dictionaries

2000-12-07 Thread Matt
Hi I am trying to get a handle on how I should handle peristence in my python products. I have read all the ZODB documents and all the Product tutorials, which all led me to believe that 1) mutable objects such as lists and dictionaries are not persistent and that updates to these will not be imp