Dieter, thank you for the suggestion on how to change
\lib\python\OFS\DTMLMethod.py
to avoid the key error.
Before I went ahead and altered zope's the underlying code, I thought I would
try Andres' suggestion first, by rewriting the dtml method as a python script:
REQUEST = container.REQUEST
RES
Dieter,
I restarted zope in debug mode last night and recorded the following error:
2007-01-23T06:56:18 ERROR Zope.SiteErrorLog
http://someurl/someobject/somedtmlmethod
Traceback (most recent call last):
File "X:\SomePath\Zope-2.8.1-final\lib\python\ZPublisher\Publish.py", line
113, in publish
I am using zope 2.8.1. and am using the following dtml method to reindex
the catalog:
However, midway through the reindex, I am receiving the following error message:
Traceback (innermost last):
Module ZPublisher.Publish, line 113, in publish
Module ZPublisher.mapply, line 88, in mapply
I recently had to rebuild our catalog using the manage_catalogFind form in
the ZMI. In this case, I simply selected the object types that I wanted
recataloged, then clicked the "find and catalog" button.
However, I now notice that almost every object that was found is entered
into the catalog twi
Dieter,
Appreciate your help.
I found a way to test if the "ExternalMethod" really returned a dict here:
http://infrae.com/mailman_/pipermail/silva-dev/2004q2/001091.html
And you were right! This is not seen as as a valid dictionary (nor is it
seen as a string):
stuff = container.externalmetho
Max,
In response to your post here:
http://mail.zope.org/pipermail/zope/2005-February/156369.html
I am having some difficulty getting this to work.
###
# everything works fine from here
object = []
results = []
subbrain = []
query = 'somekeyword'
for brain in context.Catalog(meta_type='Fold