Changeset 135 for plone4bio.biosql

Show
Ignore:
Timestamp:
02/13/10 19:15:26 (2 years ago)
Author:
mauro
Message:

see #12

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plone4bio.biosql/trunk/src/plone4bio/biosql/content/seqrecord.py

    r134 r135  
    7171    #TODO: plone4bio.base 
    7272    def SearchableText(self): 
    73         return "%s %s %s %r" % (self.name, self.accession, self.description, self.annotations) 
     73        text = "%s %s %s" % (self.name, self.accession, self.description) 
     74        if self.annotations.has_key('references'): 
     75            for ref in self.annotations['references']: 
     76                text = "%s %s" % (text, ref) 
     77        return text 
    7478     
    7579    def Accession(self): 
     
    97101    def _getSeqRecord(self, reload=False): 
    98102        """ """ 
    99         # from stxnext import pdb;pdb.set_trace() 
    100103        if self._v_seqrecord is None or reload: 
    101104            if self.getBioSQLRoot().seqrecord_key == 'accession':