PEATDB/PEATApp.py
def display_file(self, protein, field_name):
        """Uses a new method of file storage with blobs
           We just get the blob from the filerecord object"""
        D = self.DB.data
        if D[protein].has_key(field_name):
            filerec=D[protein][field_name]
        else:
            return
        fh = FileHandler(self)
        fh.displayFile(filerec)
        return
Uses a new method of file storage with blobs
           We just get the blob from the filerecord object
Uses a new method of file storage with blobs
We just get the blob from the filerecord object
Uses a new method of file storage with blobs We just get the blob from the filerecord object
def display_file(self, protein, field_name):
        D = self.DB.data
        if D[protein].has_key(field_name):
            filerec=D[protein][field_name]
        else:
            return
        fh = FileHandler(self)
        fh.displayFile(filerec)
        return
def display_file ( self , protein , field_name ) : D = self . DB . data if D [ protein ] . has_key ( field_name ) : filerec = D [ protein ] [ field_name ] else : return fh = FileHandler ( self ) fh . displayFile ( filerec ) return
Uses a new method of file storage with blobs
We just get the blob from the filerecord object
Uses a new method of file storage with blobs We just get the blob from the filerecord object
"""Uses a new method of file storage with blobs
           We just get the blob from the filerecord object"""
self
protein
field_name