PEATDB/PEATApp.py
def add_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:
            filerec=None
        fh = FileHandler(self)
        newfile = fh.addFileDialog(filerec)

        if newfile:
            self.DB.addBlob(protein, field_name, fh.newfile)
            self.table.redrawCell(recname=protein, colname=field_name)
        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 add_file(self,protein,field_name):
        D = self.DB.data
        if D[protein].has_key(field_name):
            filerec=D[protein][field_name]
        else:
            filerec=None
        fh = FileHandler(self)
        newfile = fh.addFileDialog(filerec)
        if newfile:
            self.DB.addBlob(protein, field_name, fh.newfile)
            self.table.redrawCell(recname=protein, colname=field_name)
        return
def add_file ( self , protein , field_name ) : D = self . DB . data if D [ protein ] . has_key ( field_name ) : filerec = D [ protein ] [ field_name ] else : filerec = None fh = FileHandler ( self ) newfile = fh . addFileDialog ( filerec ) if newfile : self . DB . addBlob ( protein , field_name , fh . newfile ) self . table . redrawCell ( recname = protein , colname = field_name ) 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