[ZPatterns] Re: [Zope-dev] ZCatalog becoming empty when using "Update" in conjunction with ZPatterns
Steve Alexander
[email protected]
Mon, 03 Dec 2001 10:26:21 +0000
Jean Jordaan wrote:
>>Please state the version of Zope, Python and ZPatterns.
>>
>
> I'm running Zope 2.3.2, Python 1.5.2 and ZPatterns-0-4-3p2
IIRC there's a bug in Zope 2.3.2 where a ZCatalog won't find dataskins
in a Rack when reindexing.
There are several solutions. Choose any one:
Change the ZCatalog to use unrestrictedTraverse rather than
restrictedTraverse when finding objects to reindex
Add some SkinScript to define a __roles__ attribute of your dataskins
(could be a security risk if you do it wrong)
Upgrade to Zope 2.4 (you'll need TransactionAgents...)
--
Steve Alexander