Re: [Zope] Catalog-aware ZClass not getting indexed?
It's testing to see if it can acquire the ZCatalog which it has been told to use. Since your newly created object is bare and without acquisition context of any sort, this fails.
instance = instance.__of__(container)
...right before you start playing with the index methods.
Evan if you by chance find yourself in Australia, I'll buy you a beer. Is this Zope voodoo or straight Python class witchcraft? In humble admiration, Darran.
On Tue, Feb 15, 2000 at 05:35:59PM +1100, Darran Edmundson wrote:
It's testing to see if it can acquire the ZCatalog which it has been told to use. Since your newly created object is bare and without acquisition context of any sort, this fails.
instance = instance.__of__(container) ...right before you start playing with the index methods.
Evan if you by chance find yourself in Australia, I'll buy you a beer. Is this Zope voodoo or straight Python class witchcraft?
No, no, no... He can't come to Australia, that'd be _far_ too confusing!
In humble admiration, Darran.
The Other Evan. -- Evan ~ThunderFoot~ Gibson ~ nihil mutatem, omni deletum ~ May the machines watch over you with loving grace.
----- Original Message ----- From: Evan Gibson <egibson@connect.com.au>
On Tue, Feb 15, 2000 at 05:35:59PM +1100, Darran Edmundson wrote:
Evan if you by chance find yourself in Australia, I'll buy you a beer. Is this Zope voodoo or straight Python class witchcraft?
This is acquisitionmancy, the heart of Zope voodoo. It's not *too* bad, though... see http://www.zope.org/Members/jim/Info/IPC8/AcquisitionAlgebra for a quick overview, and then peek at lib/Components/ExtensionClass/Acquisition.stx
No, no, no... He can't come to Australia, that'd be _far_ too confusing!
What we need to do is rustle up a few more Evans, and have a Philosophers' get-together. Cheers, Evan @ digicool
From: Darran Edmundson <Darran.Edmundson@anu.edu.au>
It's testing to see if it can acquire the ZCatalog which it has been told to use. Since your newly created object is bare and without acquisition context of any sort, this fails.
instance = instance.__of__(container)
...right before you start playing with the index methods.
Evan if you by chance find yourself in Australia, I'll buy you a beer. Is this Zope voodoo or straight Python class witchcraft?
I think this is extension class voodoo, a strange cross-breed that makes ZClass possible.
In humble admiration, Darran.
Drew
participants (4)
-
Andrew Lahser -
Darran Edmundson -
Evan Gibson -
Evan Simpson