Software Index
Linux Software Utilities  

svndjango

download download home home   report broken
important software information
company name:
Ethan Jucovy
license: Freeware
minimum requirements:
functional limitations:
svndjango description
svndjango provides some basic utilities for backing up django model instances to a Subversion repository. It is very experimental at this point and hasn't been tested in any meaningful environment.

It does not provide any utilities for restoring live data from backups, though it may one day.

Two distinct use cases are supported:
* You want to version a model wholesale
* You have a model which has one or two document-like text fields, and you want to version those fields only

To use the former, you should subclass svndjango.models.SubversionedMixin and call its .save method from your own. svndjango.models.SubversionedModel is an example (which you can also just subclass directly and not worry about any of it, but it lacks flexibility) -- you probably want to call SubversionedMixin.save only after the "actual" .save to your RDB; this will ensure that you don't accidentally save a revision that ends up being rolled back in the RDB.

Your model instances will be serialized to JSON and saved in repository paths that look like `/module/name/class/name/instance_pk`.

To be honest, versioning a model wholesale seems like a pretty bad idea to me, unless you're very careful about versioning every related model, and unless you're versioning the model schemas side-by-side with the content. But it's fun to experiment with at least.

To use the latter, your model should subclass svndjango.models.SVNDoc in the same manner. Text fields to be versioned must be declared explicitly, by using the svndjango.models.SubversionedTextField field instead of the standard TextField.

Your text fields will be saved directly into the repository in repository paths that look like `/module/name/class/name/instance_pk/field_name`.

You must provide one piece of configuration in your settings.py file:
* SVNDJANGO_CHECKOUT_DIR: the absolute path to a local checkout of the repository that you want to store your data in

A second optional setting is supported:
* SVNDJANGO_SILENT_FAILURES: if this is set to True, then any exceptions caused by svndjango will be swallowed. This may be useful if you'd rather avoid user errors than preserve a strictly full history of changes.

You will have to initialize your SVN repository and checkout on your own, though these may be automated in future versions. (Not that it's hard to do anyway)

You must have pysvn installed.

Originally developed at Columbia University's Center for New Media Teaching & Learning. . Publisher of svndjango, Author of svndjango 0.2. svndjango provides some basic utilities for backing up django model instances to a Subversion repository. It is very experimental at this point and hasn't been tested in any meaningful
Similar software
SendmailAnalyzer (Popularity: ) : Sendmail Analyzer is a perl script reporting full HTML and graph sendmail usage reports. The project reports statistics on inbound, outbound and largest messages, senders and recipients, relays, domains, and complete mailboxes usage if your country law allow it.

Statistics are ...

SiteTool (Popularity: ) : The SiteTool package offers tools for working with HTML pages in the context of managing a website.

SiteTool - Tools for working with HTML pages in the context of managing a website.

This program is free software: you can redistribute it and/or ...

User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Rate me
supported os's
stats
downloads 6
version 0.2
size in Kb 10
popularity   
818/1272475
user rating 0/10
our rating 0 Stars
share info
Recommend svndjango
Report spyware
New Software
Popular Software
Latest Reviews