PEATDB/Sandbox.py
def addBlob(self, recname, field, filename):
        """Adds an external file as a blob to the DB"""
        f=os.path.split(filename)[1]
        self.add(recname)
        blob = self.getBlob(filename)
        self.data[recname][field] = FileRecord(name=filename, blob=blob)
        return
Adds an external file as a blob to the DB
Adds an external file as a blob to the DB
Adds an external file as a blob to the DB
def addBlob(self, recname, field, filename):
        f=os.path.split(filename)[1]
        self.add(recname)
        blob = self.getBlob(filename)
        self.data[recname][field] = FileRecord(name=filename, blob=blob)
        return
def addBlob ( self , recname , field , filename ) : f = os . path . split ( filename ) [ 1 ] self . add ( recname ) blob = self . getBlob ( filename ) self . data [ recname ] [ field ] = FileRecord ( name = filename , blob = blob ) return
Adds an external file as a blob to the DB
Adds an external file as a blob to the DB
"""Adds an external file as a blob to the DB"""
self
recname
field
filename