def __delitem__(self, key):
        """
        Delete the given element from the list and synchronize the textual
        representation.
        """
        if self.entries_collection is not None:
            self.entries_collection.delete_entry(self[key])

        super(EntriesList, self).__delitem__(key)

        if not self and self.entries_collection is not None:
            self.entries_collection.delete_date(self.date)
def __delitem__ ( self , key ) : if self . entries_collection is not None : self . entries_collection . delete_entry ( self [ key ] ) super ( EntriesList , self ) . __delitem__ ( key ) if not self and self . entries_collection is not None : self . entries_collection . delete_date ( self . date )
Delete the given element from the list and synchronize the textual
        representation.