~eopadoan/django-wikiapp/rcsfield_support

Viewing all changes in revision 149.

  • Committer: Eduardo O. Padoan
  • Date: 2008-09-19 02:30:10 UTC
  • Revision ID: eduardo.padoan@gmail.com-20080919023010-nfunbco5mz0gxtsh
Made Article.content a RcsTextField, added a RevisionManager and removed ChangeSet. Tested with bzr backend only, yet. No changes to the views where made yet. To test:
 - Add 'rcsfield' to the INSTALLED_APPS setting
 - Add RCS_BACKEND (eg 'bzr') and BZR_WC_PATH (the path to the bzr working tree, eg '.') to settings.py -- both settings are undocumented on django-rcsfield 
 - Run syncdb
 - Add a Article on admin and change it later some times
 - Text the api on a shell:
a = Article.objects.get()
a.get_content_revisions()
[3, 2]
for x in a.get_content_diff(3, 2): print x

TODO: 
 - Adapt the views
 - Use the {% historytrail %} template tag

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: