diff --git a/configure.zcml b/configure.zcml index ba2774b..0e073b5 100644 --- a/configure.zcml +++ b/configure.zcml @@ -286,14 +286,6 @@ - - - - - - - - diff --git a/resource.py b/resource.py index 38373db..56953a5 100644 --- a/resource.py +++ b/resource.py @@ -40,7 +40,6 @@ from cStringIO import StringIO from zope.app.event.objectevent import ObjectModifiedEvent, Attributes from zope.event import notify -from textindexng.interfaces import IIndexableContent from textindexng.content import IndexContentCollector from cybertools.relation.registry import getRelations from cybertools.relation.interfaces import IRelatable @@ -250,23 +249,6 @@ class IndexAttributes(object): return ' '.join((zapi.getName(context), context.title,)).strip() -class IndexableResource(object): - """ Used for TextIndexNG - obsolete. - """ - - implements(IIndexableContent) - adapts(IResource) - - def __init__(self, context): - self.context = context - - def indexableContent(self, fields): - context = self.context - icc = IndexContentCollector() - icc.addBinary(fields[0], context.data, context.contentType, language='de') - return icc - - class ResourceTypeSourceList(object): implements(schema.interfaces.IIterableSource)