PEATDB/Sandbox.py
def updateCellCache(self, name, field):
        """Update cache for cell display whenever we add/remove/change fields"""
        if field in self.meta.userfields:
            ftype = self.meta.userfields[field]['field_type']
        else:
            ftype = self.meta.staticfields[field]
        if not self.cellcache.has_key(field):
            self.cellcache[field] = {}
        p = self.data[name]
        self.cellcache[field][name] = p.getDisplayAttribute(field, ftype)
        self.cellcache._p_changed = 1
        return
Update cache for cell display whenever we add/remove/change fields
Update cache for cell display whenever we add/remove/change fields
Update cache for cell display whenever we add / remove / change fields
def updateCellCache(self, name, field):
        if field in self.meta.userfields:
            ftype = self.meta.userfields[field]['field_type']
        else:
            ftype = self.meta.staticfields[field]
        if not self.cellcache.has_key(field):
            self.cellcache[field] = {}
        p = self.data[name]
        self.cellcache[field][name] = p.getDisplayAttribute(field, ftype)
        self.cellcache._p_changed = 1
        return
def updateCellCache ( self , name , field ) : if field in self . meta . userfields : ftype = self . meta . userfields [ field ] [ 'field_type' ] else : ftype = self . meta . staticfields [ field ] if not self . cellcache . has_key ( field ) : self . cellcache [ field ] = { } p = self . data [ name ] self . cellcache [ field ] [ name ] = p . getDisplayAttribute ( field , ftype ) self . cellcache . _p_changed = 1 return
Update cache for cell display whenever we add/remove/change fields
Update cache for cell display whenever we add / remove / change fields
"""Update cache for cell display whenever we add/remove/change fields"""
self
name
field