To implement revision control for document I had to do the following stuff:
- Implement
Revision,RevisionInfoandRevisionContentclasses insoc.models.revisionmodule - Implement
Logicclass for revisions insoc.logic.models.revision. It overridessoc.logic.models.base.Logic.updateOrCreateFromFieldsand defines method to create new revision. - Change forms configuration in
soc.views.models.document.View
UPD: New version of Melange that supports revisions is available at appspot.
No comments:
Post a Comment