<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def updateIgnoredEntry(self):
 """Updates an ignore-entry object with current content of dialog, by marking all data products for ignore."""

        # collect new DPs from items
        dps = []
        for item, dp in self.wdplv.getItemDPList():
            if dp and not dp.archived:  # None means a new DP
                # set all policies to ignore, unless already set to banish
                if dp.policy != "banish":
                    self.wdplv.setItemPolicy(item, "ignore")
                    dp.set_policy("ignore")
                dps.append(dp)
        # return new entry
        return Purr.LogEntry(time.time(), dps=dps, ignore=True)