Exceptions happen after Intervention plugin is removed

Bug #969221 reported by Gediminas Paulauskas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SchoolTool
Fix Released
Critical
Gediminas Paulauskas

Bug Description

I copied database to another sandbox where intervention plugin is not available.

Now exceptions occur in all pages where indexed tables are used (persons, groups, members).

Traceback
File "/home/menesis/.buildout/eggs/zope.publisher-3.12.6-py2.7.egg/zope/publisher/publish.py", line 132, in publish
  result = publication.callObject(request, obj)
File "/home/menesis/.buildout/eggs/zope.app.publication-3.13.2-py2.7.egg/zope/app/publication/zopepublication.py", line 207, in callObject
  return mapply(ob, request.getPositionalArguments(), request)
File "/home/menesis/.buildout/eggs/zope.publisher-3.12.6-py2.7.egg/zope/publisher/publish.py", line 107, in mapply
  return debug_call(obj, args)
Extra information: <schooltool.skin.flourish.zcml_content.FlourishPersonEditView_edit.html object at 0xb322984c>
File "/home/menesis/.buildout/eggs/zope.publisher-3.12.6-py2.7.egg/zope/publisher/publish.py", line 113, in debug_call
  return obj(*args)
File "/home/menesis/.buildout/eggs/schooltool-2.0.4dev_r3373-py2.7.egg/schooltool/skin/flourish/page.py", line 77, in __call__
  self.update()
File "/home/menesis/.buildout/eggs/schooltool-2.0.4dev_r3373-py2.7.egg/schooltool/basicperson/browser/person.py", line 543, in update
  form.EditForm.update(self)
File "/home/menesis/.buildout/eggs/z3c.form-2.5.1-py2.7.egg/z3c/form/form.py", line 210, in update
  self.actions.execute()
File "/home/menesis/.buildout/eggs/z3c.form-2.5.1-py2.7.egg/z3c/form/action.py", line 99, in execute
  result = handler()
File "/home/menesis/.buildout/eggs/z3c.form-2.5.1-py2.7.egg/z3c/form/button.py", line 315, in __call__
  return handler(self.form, self.action)
File "/home/menesis/.buildout/eggs/z3c.form-2.5.1-py2.7.egg/z3c/form/button.py", line 170, in __call__
  return self.func(form, action)
File "/home/menesis/.buildout/eggs/schooltool-2.0.4dev_r3373-py2.7.egg/schooltool/basicperson/browser/person.py", line 547, in handleApply
  super(FlourishPersonEditView, self).handleApply.func(self, action)
File "/home/menesis/.buildout/eggs/z3c.form-2.5.1-py2.7.egg/z3c/form/form.py", line 294, in handleApply
  changes = self.applyChanges(data)
File "/home/menesis/.buildout/eggs/z3c.form-2.5.1-py2.7.egg/z3c/form/form.py", line 285, in applyChanges
  zope.lifecycleevent.ObjectModifiedEvent(content, *descriptions))
File "/home/menesis/.buildout/eggs/zope.event-3.5.1-py2.7.egg/zope/event/__init__.py", line 31, in notify
  subscriber(event)
File "/home/menesis/.buildout/eggs/zope.component-3.10.0-py2.7.egg/zope/component/event.py", line 24, in dispatch
  zope.component.subscribers(event, None)
File "/home/menesis/.buildout/eggs/zope.component-3.10.0-py2.7.egg/zope/component/_api.py", line 136, in subscribers
  return sitemanager.subscribers(objects, interface)
File "/home/menesis/.buildout/eggs/zope.component-3.10.0-py2.7.egg/zope/component/registry.py", line 321, in subscribers
  return self.adapters.subscribers(objects, provided)
File "/home/menesis/.buildout/eggs/zope.interface-3.6.1-py2.7-linux-i686.egg/zope/interface/adapter.py", line 585, in subscribers
  subscription(*objects)
File "/home/menesis/.buildout/eggs/schooltool-2.0.4dev_r3373-py2.7.egg/schooltool/schoolyear/subscriber.py", line 35, in subscriberAdapterDispatcher
  subscriber()
File "/home/menesis/.buildout/eggs/schooltool-2.0.4dev_r3373-py2.7.egg/schooltool/schoolyear/subscriber.py", line 55, in __call__
  subscriber()
File "/home/menesis/.buildout/eggs/schooltool-2.0.4dev_r3373-py2.7.egg/schooltool/contact/basicperson.py", line 130, in __call__
  notify(ObjectModifiedEvent(contact))
File "/home/menesis/.buildout/eggs/zope.event-3.5.1-py2.7.egg/zope/event/__init__.py", line 31, in notify
  subscriber(event)
File "/home/menesis/.buildout/eggs/zope.component-3.10.0-py2.7.egg/zope/component/event.py", line 24, in dispatch
  zope.component.subscribers(event, None)
File "/home/menesis/.buildout/eggs/zope.component-3.10.0-py2.7.egg/zope/component/_api.py", line 136, in subscribers
  return sitemanager.subscribers(objects, interface)
File "/home/menesis/.buildout/eggs/zope.component-3.10.0-py2.7.egg/zope/component/registry.py", line 321, in subscribers
  return self.adapters.subscribers(objects, provided)
File "/home/menesis/.buildout/eggs/zope.interface-3.6.1-py2.7-linux-i686.egg/zope/interface/adapter.py", line 585, in subscribers
  subscription(*objects)
File "/home/menesis/.buildout/eggs/schooltool-2.0.4dev_r3373-py2.7.egg/schooltool/app/catalog.py", line 202, in reindexDocSubscriber
  entry.catalog.index_doc(obj_id, obj)
File "/home/menesis/.buildout/eggs/zc.catalog-1.5.1-py2.7.egg/zc/catalog/extentcatalog.py", line 179, in index_doc
  self.extent.add(docid, texts)
File "/home/menesis/.buildout/eggs/zc.catalog-1.5.1-py2.7.egg/zc/catalog/extentcatalog.py", line 119, in add
  if not self.addable(uid, obj):
File "/home/menesis/.buildout/eggs/zc.catalog-1.5.1-py2.7.egg/zc/catalog/extentcatalog.py", line 125, in addable
  return self.filter(self, uid, obj)
File "/home/menesis/.buildout/eggs/schooltool-2.0.4dev_r3373-py2.7.egg/schooltool/table/catalog.py", line 54, in __call__
  return bool(self.interface.providedBy(item))
AttributeError: type object 'IInterventionMarker' has no attribute 'providedBy'

Revision history for this message
Gediminas Paulauskas (menesis) wrote :

In addition, there is an error on startup:

Failed to execute <schooltool.app.catalog.ExpiredCatalogCleanup object at 0x9e1ddac>: type object 'IInterventionMarker' has no attribute 'providedBy'

Revision history for this message
Gediminas Paulauskas (menesis) wrote :

I fixed the error on startup. Now on startup (without intervention) the intervention catalog is successfully deleted, and it does not interfere later.

Changed in schooltool:
assignee: nobody → Gediminas Paulauskas (menesis)
importance: Undecided → Critical
milestone: none → 2.1.0
status: New → Fix Committed
Revision history for this message
Tom Hoffman (tom-hoffman) wrote :

This deletes the intervention *catalog* not the actual data, correct?

Revision history for this message
Gediminas Paulauskas (menesis) wrote : Re: [Bug 969221] Re: Exceptions happen after Intervention plugin is removed

2012/3/30 Tom Hoffman <email address hidden>:
> This deletes the intervention *catalog* not the actual data, correct?

Yes.

The catalog would become outdated anyway.

--
Gediminas Paulauskas

Changed in schooltool:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.