Changeset 225:8ae6a7d30952 for xap

Show
Ignore:
Timestamp:
03/21/08 18:47:33 (5 months ago)
Author:
Lafaye Philippe (RAGE2000) <lafaye@…>
Message:

Configure the database engine for return unicode and we d'ont need to convert
it in the indexer

Location:
xap/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • xap/trunk/model.py

    r219 r225  
    33from sqlalchemy import * 
    44 
    5 sql_db = create_engine(SQLURI) 
     5sql_db = create_engine(SQLURI, convert_unicode=True) 
    66metadata = BoundMetaData(sql_db) 
    77 
  • xap/trunk/xapindexer.py

    r224 r225  
    5252        logging.debug('xap:indexing %s' % uid) 
    5353        options = {'treshold': 2} 
    54         if isinstance(text, str): 
    55             text = text.decode('utf8') 
    5654        words = tokenize(text, options=options) 
    5755        if language is not None: