def setLogEntries(self, entries, save=True, update_policies=True):
        """Sets list of log entries. If save=True, saves the log. If update_policies=True, also updates default policies based
        on these entries"""
        prev = None;  # "previous" valid entry for "Prev" link
        uplink = os.path.join("..", Purr.RenderIndex.INDEX);  # "Up" link
        self.entries = []
        for entry in entries:
            if not entry.ignore:
                entry.setPrevUpNextLinks(prev=prev, up=uplink)
                prev = entry
                self.entries.append(entry)
        if save:
            self.save()
        if update_policies:
            # populate default policies and renames based on entry list
            self._default_dp_props = {}
            for entry in entries:
                self.updatePoliciesFromEntry(entry)
            dprint(4, "default policies:", self._default_dp_props)
def setLogEntries ( self , entries , save = True , update_policies = True ) : prev = None ; uplink = os . path . join ( ".." , Purr . RenderIndex . INDEX ) ; self . entries = [ ] for entry in entries : if not entry . ignore : entry . setPrevUpNextLinks ( prev = prev , up = uplink ) prev = entry self . entries . append ( entry ) if save : self . save ( ) if update_policies : self . _default_dp_props = { } for entry in entries : self . updatePoliciesFromEntry ( entry ) dprint ( 4 , "default policies:" , self . _default_dp_props )
Sets list of log entries. If save=True, saves the log. If update_policies=True, also updates default policies based
        on these entries