PEATDB/Labbook.py
def addFile(self, row, col):
        """Uses a new method of file storage with blobs
           We just get the blob from the filerecord object"""
        from Extfile import FileHandler
        model = self.getModel()
        celldata = model.getCellRecord(row, col)
        fh = FileHandler(self)
        newfile = fh.addFileDialog()

        print newfile
        if newfile != None:
            self.addBlob(row, col, fh.newfile)
            self.redrawTable()
            print model.getValueAt(row, col)
        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 addFile(self, row, col):
        from Extfile import FileHandler
        model = self.getModel()
        celldata = model.getCellRecord(row, col)
        fh = FileHandler(self)
        newfile = fh.addFileDialog()
        print newfile
        if newfile != None:
            self.addBlob(row, col, fh.newfile)
            self.redrawTable()
            print model.getValueAt(row, col)
        return
def addFile ( self , row , col ) : from Extfile import FileHandler model = self . getModel ( ) celldata = model . getCellRecord ( row , col ) fh = FileHandler ( self ) newfile = fh . addFileDialog ( ) print newfile if newfile != None : self . addBlob ( row , col , fh . newfile ) self . redrawTable ( ) print model . getValueAt ( row , col ) 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
row
col