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:
		
							parent
							
								
									40e05c00f4
								
							
						
					
					
						commit
						dbaf1d26f9
					
				
					 2 changed files with 0 additions and 26 deletions
				
			
		|  | @ -286,14 +286,6 @@ | |||
|     <allow interface="loops.interfaces.IIndexAttributes" /> | ||||
|   </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.DocumentWriteFileAdapter" /> | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										18
									
								
								resource.py
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								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) | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm