PEATDB/Sandbox.py
def createCellCache(self):
        """Create a cache of the displayed values for each record/field
           Primarily used for quick display in the table"""
        print '(re)creating db display cache'
        fields = self.meta.userfields.keys() + self.meta.staticfields.keys()
        self.cellcache.clear()
        for f in fields:
            self.cellcache[f] = {}
            if f in self.meta.userfields:
                ftype = self.meta.userfields[f]['field_type']
            else:
                ftype = self.meta.staticfields[f]
            for r in self.records.keys():
                p = self.data[r]
                self.cellcache[f][r] = p.getDisplayAttribute(f, ftype)
        self.cellcache._p_changed = 1
        self.meta.usedisplaycache = True
        return
Create a cache of the displayed values for each record/field
           Primarily used for quick display in the table
Create a cache of the displayed values for each record/field
Primarily used for quick display in the table
Create a cache of the displayed values for each record / field Primarily used for quick display in the table
def createCellCache(self):
        print '(re)creating db display cache'
        fields = self.meta.userfields.keys() + self.meta.staticfields.keys()
        self.cellcache.clear()
        for f in fields:
            self.cellcache[f] = {}
            if f in self.meta.userfields:
                ftype = self.meta.userfields[f]['field_type']
            else:
                ftype = self.meta.staticfields[f]
            for r in self.records.keys():
                p = self.data[r]
                self.cellcache[f][r] = p.getDisplayAttribute(f, ftype)
        self.cellcache._p_changed = 1
        self.meta.usedisplaycache = True
        return
def createCellCache ( self ) : print '(re)creating db display cache' fields = self . meta . userfields . keys ( ) + self . meta . staticfields . keys ( ) self . cellcache . clear ( ) for f in fields : self . cellcache [ f ] = { } if f in self . meta . userfields : ftype = self . meta . userfields [ f ] [ 'field_type' ] else : ftype = self . meta . staticfields [ f ] for r in self . records . keys ( ) : p = self . data [ r ] self . cellcache [ f ] [ r ] = p . getDisplayAttribute ( f , ftype ) self . cellcache . _p_changed = 1 self . meta . usedisplaycache = True return
Create a cache of the displayed values for each record/field
Primarily used for quick display in the table
Create a cache of the displayed values for each record / field Primarily used for quick display in the table
"""Create a cache of the displayed values for each record/field
           Primarily used for quick display in the table"""
self