Re: [ZODB-Dev] Python properties on Persistent objects

2009-12-17 Thread Martin Aspeli
Mikko Ohtamaa wrote: This isn't right: a z3c.form form is just a view like any other. It is looked up on the context and the request. In Dexterity (which I assume you're using?), that's going to be the content object. Sorry, I think I mixed with zope.formlib. In any case I hope to find the

Re: [ZODB-Dev] Python properties on Persistent objects

2009-12-17 Thread Mikko Ohtamaa
That code is insane. Really insane. It's generating classes and doing custom adapter factories that inject a _v_ variable into a persistent object temporarily. I wouldn't try to copy it at all. I would run away. But I thought this was *the* Zope way and the brightest minds in the community

Re: [ZODB-Dev] Python properties on Persistent objects

2009-12-17 Thread Jim Fulton
On Wed, Dec 16, 2009 at 7:12 PM, Mikko Ohtamaa mi...@redinnovation.com wrote: I need to have little clarification should properties work on Persistent objects. Properties work with persistent objects with one limitation that I'm aware of. The __setattribute__ method used by the persistent base

Re: [ZODB-Dev] Python properties on Persistent objects

2009-12-17 Thread Mikko Ohtamaa
Properties work with persistent objects with one limitation that I'm aware of. The __setattribute__ method used by the persistent base class assumes that any attribute assignment modifies the object's persistent state. A property that doesn't modify state or that modifies volatile state will

Re: [ZODB-Dev] ZODB 3.9/3.8 incompatibility (was Re: Data.fs size grows non-stop)

2009-12-17 Thread Kapil Thangavelu
On Thu, Dec 10, 2009 at 8:12 PM, Marius Gedminas mar...@gedmin.as wrote: On Thu, Dec 10, 2009 at 02:07:06PM -0500, Jim Fulton wrote: On Thu, Dec 10, 2009 at 1:50 PM, Marius Gedminas mar...@gedmin.as wrote: On Thu, Dec 10, 2009 at 12:41:11PM -0500, Jim Fulton wrote: On Thu, Dec 10, 2009

[ZODB-Dev] Locating backrefs of persistent objects

2009-12-17 Thread Marius Gedminas
I'd like to implement the following feature for zodbbrowser: given a persistent object X, find all other persistent objects that have references to it. My use case for this is debugging: e.g. given a log entry that mentions a conflict error about an OOBTreeBucket, I'd like to know which OOBTree

Re: [ZODB-Dev] Locating backrefs of persistent objects

2009-12-17 Thread Jim Fulton
On Thu, Dec 17, 2009 at 4:06 PM, Marius Gedminas mar...@gedmin.as wrote: I'd like to implement the following feature for zodbbrowser: given a persistent object X, find all other persistent objects that have references to it. My use case for this is debugging: e.g. given a log entry that

Re: [ZODB-Dev] Locating backrefs of persistent objects

2009-12-17 Thread Shane Hathaway
Marius Gedminas wrote: I'd like to implement the following feature for zodbbrowser: given a persistent object X, find all other persistent objects that have references to it. RelStorage has this functionality, but I don't know how we ought to expose it. Start a pack to update the graph, then