History Diff feature

25 views
Skip to first unread message

Martin Owens

unread,
Jul 20, 2016, 12:40:58 PM7/20/16
to django CMS developers, Maren Hachmann

The inkscape project has worked on a diff feature of django-cms, it's currently a separate app in our repository, but I'm brining it to django-cms project's attention to see if it's useful for other users.


See screenshots for examples. It follows the wikia diff form pattern and uses reversion with diff_match_patch to produce colour diff output.


Screenshots can be found on this closed bug report: https://github.com/divio/django-cms/issues/5556



Angelo Dini

unread,
Jul 21, 2016, 3:03:24 AM7/21/16
to django CMS developers, ma...@goos-habermann.de
That looks great, indeed the history would be enhanced with such functionality.
Did you also had a chance while working on that feature to address the basic problems of the history feature?

Cheers
Angelo

czpython

unread,
Jul 21, 2016, 8:17:42 AM7/21/16
to django CMS developers, ma...@goos-habermann.de
Hello Martin,

I'm personally very interested in this.
You mentioned it's using the reversion library, are you using the revision support builtin to djangoCMS?

Martin Owens

unread,
Jul 21, 2016, 8:45:26 AM7/21/16
to django-cms...@googlegroups.com, ma...@goos-habermann.de
On Thu, 2016-07-21 at 05:17 -0700, czpython wrote:
> You mentioned it's using the reversion library, are you using the
> revision support builtin to djangoCMS?

It does. You can find the code here:

http://bazaar.launchpad.net/~inkscape-webadmin/inkscape-web/inkscape-we
b/files/head:/cmsdiff/

It's still a bit messy with some non-generic things. But I've tried to
keep things clean.

On Thu, 2016-07-21 at 00:03 -0700, Angelo Dini wrote:
> Did you also had a chance while working on that feature to address
> the basic problems of the history feature?

There are a couple of monkey patches, but they evolved as the reversion
code changed. I don't think I've addressed any of the core issues with
the functionality but at least my understanding of reversion is a bit
better.

It does combine all previous revisions into one publish reversion when
you hit publish.

Best Regards, Martin Owens
signature.asc
Reply all
Reply to author
Forward
0 new messages