Message1326
Logged In: YES
user_id=6405
Thanks for chasing this down!
Added, with a slight change so that we don't index all
non-text/plain file content, so on the FileClass::
def index(self, nodeid):
'''Add (or refresh) the node to search indexes.
Pass on the content-type property.
'''
# find all the String properties that have indexme
for prop, propclass in self.getprops().items():
if not isinstance(propclass, String) or not
propclass.indexme:
continue
if prop == 'content':
mime_type = self.get(itemid, 'type')
if not mime_type:
mime_type = self.default_mime_type
else:
mime_type = 'text/plain'
self.db.indexer.add_text((self.classname, nodeid, prop),
str(self.get(nodeid, prop)), mime_type)
|
|
Date |
User |
Action |
Args |
2009-02-03 14:20:49 | admin | link | issue980314 messages |
2009-02-03 14:20:49 | admin | create | |
|