Changeset 86 for plone4bio.base/trunk

Show
Ignore:
Timestamp:
09/03/09 12:08:34 (3 years ago)
Author:
andrea
Message:

corretto per l'export di genbank di record con locus identifier piu' lungo di 16.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plone4bio.base/trunk/src/plone4bio/base/browser/seqrecord.py

    r84 r86  
    4747        # FIXME: 
    4848        self.context.Description() 
    49         SeqIO.write([self.context.seqrecord, ], io, "genbank") 
     49        ## CHECK LUNGHEZZA LOCUS < 16 
     50        seqrecord = self.context.seqrecord 
     51        if len(seqrecord.name) > 16: 
     52                seqrecord.name = '' 
     53        SeqIO.write([seqrecord, ], io, "genbank") 
    5054        return io.getvalue() 
    5155