Re: Patch: HistoricalRevisions, atct_history support for annotation storage (used by newer ATCT)
Matt Hahnfeld <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 08 Mar 2006 12:39:00 +0000, Martin Aspeli wrote: >> New versions of ATContentTypes use Archetypes' annotation storage >> (Storage/annotation.py, annotations.py) for some fields. Annotation >> storage was not supported by Zope's built in history feature, making it >> impossible to use a number of cool features that used to be standard, like >> the "history" tab mixin for ATCT, and Plone's history_form (still >> included, but broken, in 2.1.2). > Does this mean that the history tab starts working again for ATDocument > (Page), event, news etc. types? Yes. I tested the history tab in the ZMI and atct_history (the plone ATCT hisotry tab) and both work great. Be sure to get my little patch for atct_history, which I appended to the ticket this morning: http://dev.plone.org/archetypes/ticket/648 I have not written any automated tests for the patches (truth be told, I'm a Perl guy, and I haven't written much production code under Python -- I still need to learn how to write tests). I'd be happy to add some tests as soon as I get a chance. So, you think a monkey patch might be the way to go? Matt ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642