[Zope-dev] Xron and Zope 2.4.0 again
Walter Miller
wmiller@mediaone.net
Thu, 26 Jul 2001 17:32:24 -0700
o.k. I tried patching Schedule.py like this (Win2k, Zope2.4.0):
def __init__(self, id='Schedule', title='Scheduled Event Catalog'):
self.id = id
self.title = title
self.threshold = 1000
self._v_total = 0
self._catalog = ZCatalog.Catalog()
from Products.PluginIndexes.FieldIndex.FieldIndex import FieldIndex
field_indexes=('type', 'numid', 'exemptions', 'date', 'stage',
'priority', 'requester', 'from', 'private')
keyword_indexes=('issueOwners','subscribers','traitVals')
text_indexes=('text_content',)
addIndex=self._catalog.addIndex
for name in field_indexes:
addIndex(name, FieldIndex(name))
for name in keyword_indexes:
addIndex(name, FieldIndex(name))
for name in text_indexes:
addIndex(name, FieldIndex(name))
self._catalog.addColumn('id')
self._catalog.addColumn('meta_type')
self._catalog.addColumn('nextEventTime')
#self._catalog.addIndex('nextEventTime', 'FieldIndex')
self._catalog.addColumn('absolute_url')
#self._catalog.addIndex('absolute_url', 'FieldIndex')
and got this error:
------
2001-07-27T00:01:06 PROBLEM(100) Init Ambiguous name for method of
Products.Xron.XronDTMLMethod.BaseXronDTMLMethod: "manage_editForm" !=
"manage_editDocument"
------
2001-07-27T00:01:06 PROBLEM(100) Init Ambiguous name for method of
Products.Xron.XronDTMLMethod.BaseXronDTMLMethod: "manage_editForm" !=
"manage"
------
2001-07-27T00:01:06 PROBLEM(100) Init Ambiguous name for method of
Products.Xron.XronDTMLMethod.BaseXronDTMLMethod: "manage_editForm" !=
"manage_main"
------
2001-07-27T00:01:07 (302) Products.Xron.Loggerr Cannot access catalog.
Suspending operation.
Traceback (most recent call last):
File "C:\Program
Files\Metrics2-4-0\lib\python\Products\Xron\Dispatcher.py", line 62, in
Timer
(atime, aurl)=Schedule.armed_event() # Get next armed event
File "C:\Program Files\Metrics2-4-0\lib\python\Products\Xron\Schedule.py",
line 125, in armed_event
sort_on='nextEventTime'
File "C:\PROGRA~1\METRIC~2\lib\python\Products\ZCatalog\Catalog.py", line
658, in searchResults
used=self._indexedSearch(kw, sort_index, r.append, used)
File "C:\PROGRA~1\METRIC~2\lib\python\Products\ZCatalog\Catalog.py", line
538, in _indexedSearch
index = self.indexes[i].__of__(self)
TypeError: unbound C method must be called with Acquirer 1st argument
Traceback (innermost last):
File C:\Program Files\Metrics2-4-0\lib\python\Products\Xron\Dispatcher.py,
line 62, in Timer
File C:\Program Files\Metrics2-4-0\lib\python\Products\Xron\Schedule.py,
line 125, in armed_event
(Object: LockableItem)
File C:\PROGRA~1\METRIC~2\lib\python\Products\ZCatalog\Catalog.py, line
658, in searchResults
File C:\PROGRA~1\METRIC~2\lib\python\Products\ZCatalog\Catalog.py, line
538, in _indexedSearch
TypeError: unbound C method must be called with Acquirer 1st argument
------
2001-07-27T00:01:07 PROBLEM(100) Products.Xron.Loggerr Dispatcher thread is
terminating.