I'm working on a project that needs versioning for Dexterity-based
content types. I then found plone.app.versioningbehavior but I saw
that there were some missing points in order to make versioning work
as well as it works for Archetypes-based content types:
- I had to specify the "diff type" for each field manualy on portal_diff.
- Diff for file fields was not working.
- Older versions were no being displayed on the versions_history_form template.
I've written two packages to fix these problems and a how-to [1] to
document the whole versioning story. I'm writing here to let you know
what I've done so far and ask for some help, since I'm not a Plone
core developer:
- Am I going in the right direction ?
- Review the code of the new packages and see if I'm doing something wrong.
- Review the how-to [1].
- Maybe the code on collective.cmfeditionsdexteritycompat could be
merged into CMFEditions.
- Perhaps add something in the Dexterity core documentation about versioning.
- Perhaps add the packages to the Dexterity KGS.
Regards,
Rafael Bruno Cavalhero de Oliveira
Analista de Desenvolvimento de Sistemas - SERPRO
http://rafaelb.objectis.net
I just wanted to say, I think this is awesome :-)
I don't have time to review this in the near term, but could you add a
ticket to the Dexterity issue tracker so we don't forget?
> - Am I going in the right direction ?
I think so, though some of this stuff may need merging later.
> - Review the code of the new packages and see if I'm doing something wrong.
This is the bit I need more time for than I have right now :(
> - Review the how-to [1].
It looks good!
> - Maybe the code on collective.cmfeditionsdexteritycompat could be
> merged into CMFEditions.
Perhaps, though CMFEditions can't have a Dexterity dependency. Maybe
put it in p.a.versioningbehavior?
> - Perhaps add something in the Dexterity core documentation about versioning.
I think that'd be a good, but maybe we should consider getting these
packages into p.a.versioningbehavior or similar first?
> - Perhaps add the packages to the Dexterity KGS.
+1 if we still need them
Martin
I've added #221 to the tracker. I think the best thing to do is to
merge the two collective packages into p.a.versioningbehavior. I'm not
a Plone core developer though, so someone else will have to do this
work. One possible issue is that the two collective.* packages uses
p.a.testing, which p.a.versioningbehavior don't.
Rafael Oliveira
cheers,
David
Rafael Bruno Cavalhero de Oliveira
Analista de Desenvolvimento de Sistemas - SERPRO
http://rafaelb.objectis.net