removing references to TextIndexNG

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1349 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2006-09-17 14:06:12 +00:00
parent 40e05c00f4
commit dbaf1d26f9
2 changed files with 0 additions and 26 deletions

View file

@ -286,14 +286,6 @@
<allow interface="loops.interfaces.IIndexAttributes" /> <allow interface="loops.interfaces.IIndexAttributes" />
</class> </class>
<adapter factory="loops.resource.IndexableResource" trusted="True" />
<class class="loops.resource.IndexableResource">
<allow interface="textindexng.interfaces.IIndexableContent" />
</class>
<class class="textindexng.content.IndexContentCollector">
<allow interface="textindexng.interfaces.IIndexContentCollector" />
</class>
<adapter factory="loops.resource.DocumentReadFileAdapter" /> <adapter factory="loops.resource.DocumentReadFileAdapter" />
<adapter factory="loops.resource.DocumentWriteFileAdapter" /> <adapter factory="loops.resource.DocumentWriteFileAdapter" />

View file

@ -40,7 +40,6 @@ from cStringIO import StringIO
from zope.app.event.objectevent import ObjectModifiedEvent, Attributes from zope.app.event.objectevent import ObjectModifiedEvent, Attributes
from zope.event import notify from zope.event import notify
from textindexng.interfaces import IIndexableContent
from textindexng.content import IndexContentCollector from textindexng.content import IndexContentCollector
from cybertools.relation.registry import getRelations from cybertools.relation.registry import getRelations
from cybertools.relation.interfaces import IRelatable from cybertools.relation.interfaces import IRelatable
@ -250,23 +249,6 @@ class IndexAttributes(object):
return ' '.join((zapi.getName(context), context.title,)).strip() 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): class ResourceTypeSourceList(object):
implements(schema.interfaces.IIterableSource) implements(schema.interfaces.IIterableSource)