From dbaf1d26f9ad16f6ca4ae7f46ba24960e3212e81 Mon Sep 17 00:00:00 2001 From: helmutm Date: Sun, 17 Sep 2006 14:06:12 +0000 Subject: [PATCH] removing references to TextIndexNG git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1349 fd906abe-77d9-0310-91a1-e0d9ade77398 --- configure.zcml | 8 -------- resource.py | 18 ------------------ 2 files changed, 26 deletions(-) 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)