[#1397] Got a patch

[email protected] (betabug)
Newsgroups gmane.comp.web.zope.zwiki
Message-ID <20071222014744-0800__40650.3866696314$1198317642$gmane$org@zwiki.org>
The following patch will solve the problem and allow revert() to re-apply the ratings again::

  hunk ./plugins/rating/rating.py 107
  +
  +    security.declarePrivate('setVotes')
  +    def setVotes(self, votes):
  +        """
  +        Private accessor. Still needed for reverting edits.
  +        """
  +        self = getattr(self,'aq_base',self)
  +        self._votes = votes
  +        self.ensureVotesIsBtree()

Tried to send this to patches@, but nothing arrived :-(
--
forwarded from http://zwiki.org/1397RatingRevisionBrokeHistoryReverting#[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.