Find a file
Ole Laursen e1f0917659 Summary: Add new document saving API, Document.save_with_history(events).
The new API requires at least one event and will automatically save a
snapshot of the document and related state. Document.save() will now
throw an exception if called directly, as the new API is intended to
ensure that documents are saved with both an appropriate snapsnot and
relevant history log, both of which are easily defeated by just
calling .save() directly.

To simplify things, the snapshot is generated after the changes to a
document have been made (in anticipation of coming changes), instead
of before as was usual.

While revising the existing code to work with this API, a couple of
missing events was discovered:

- In draft expiry, a "Document has expired" event was only generated
  in case an IESG process had started on the document - now it's
  always generated, as the document changes its state in any case

- Synchronization updates like title and abstract amendmends from the
  RFC Editor were silently (except for RFC publication) applied and
  not accompanied by a descriptive event - they now are

- do_replace in the Secretariat tools now adds an event

- Proceedings post_process in the Secretariat tools now adds an event

- do_withdraw in the Secretariat tools now adds an event

A migration is needed for snapshotting all documents, takes a while to
run. It turns out that a single document had a bad foreign key so the
migration fixes that too.
 - Legacy-Id: 10101
2015-09-28 14:01:03 +00:00
bin Added branch/iola to places checked for 'ready for merge' tags in the commit messages. 2015-08-27 11:55:21 +00:00
bootstrap Removed the link under bootstrap/static; it's not needed any more. 2015-08-01 12:57:08 +00:00
buildbot/masters/datatracker The buildbot shouldn't stop on a failed svn cleanup, as that will happen if there's no working copy in place, not only on unsuccessful cleanup. 2015-07-15 10:34:00 +00:00
django Merged in personal/henrik/django-1.7@9020 which upgrades Django from 1.6.0 to 1.7.4 and applies the needed changes to the datatracker code to work with release 1.7.x. 2015-02-08 21:16:44 +00:00
etc Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
form_utils Merged in branch/amsl/trunkmerge@5449 from rcross@amsl.com, with some tweaks. This provides the secretariat apps. 2013-03-05 22:43:31 +00:00
ietf Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
notes Datatracker development notes. 2014-04-06 14:50:03 +00:00
redesign Merged in fixes to the migration from olau@iola.dk. Merged in charter branch from olau@iola.dk. Added various fixes and correction of merge errors. 2012-05-02 19:35:32 +00:00
static Improved the verification of submitted file extensions and mimetype. 2015-08-07 12:10:26 +00:00
test Port test/ from django.core.management.setup_environ to DJANGO_SETTINGS_MODULE 2013-12-18 15:51:29 +00:00
timedelta Added a slightly tweaked version of timedelta, in order to support handling of TimedeltaFields. 2015-02-23 12:27:18 +00:00
vzic Newly generated .ics files, from http://www.ietf.org/timezones/tzdata-latest.tar.gz. This updates the .ics files to use timezone information current as of 13 Feb 2015. 2015-02-13 15:25:30 +00:00
.gitignore Misc stuff. 2015-08-01 15:07:49 +00:00
changelog Changelog entry for 6.4.1 2015-08-23 19:41:24 +00:00
changelog.py Added title annotations to major release entries in the changelog back to 2010, and changelog parsing and release page support for the same. 2015-02-10 10:59:55 +00:00
control Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
debug.py Tweaked the traceback() debug function. 2014-04-28 16:30:49 +00:00
hold-for-merge Merged in [9989] from rjsparks@nostrum.com: 2015-08-18 15:25:04 +00:00
INSTALL Updated INSTALL instructions. 2015-04-30 17:14:11 +00:00
LICENSE Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
LICENSE.django Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
README-CDN.rst Updated the README-CDN file. 2015-08-04 12:49:32 +00:00
README.datatracker Merged in [9736] from lars@netapp.com: 2015-07-18 09:30:54 +00:00
ready-for-merge Merged in [9669] from olau@iola.dk: 2015-08-10 19:46:11 +00:00
release-coverage.json Code coverage data for release 6.4.1 2015-08-23 19:41:20 +00:00
requirements.txt Require setuptools first. 2015-07-29 20:39:39 +00:00
tzparse.py Made tzparse pyflakes-clean. 2014-03-16 08:08:25 +00:00

The "new" datatracker uses Twitter Bootstrap for the UI.

Get familiar with http://getbootstrap.com/getting-started/ and use those
UI elements instead of cooking up your own.

We have some site-wide customization applied to the bootstrap version we keep
in bootstrap/ (from which the minified dist version is built); it modifies
some stuff under less/

We also apply some additional custiomizations in static/css/ietf.css; we
should eventually move that under bootstrap/less/ if possible. (ietf.css was
what Lars used initially for customization with an unmodified bootstrap.)

Some ground rules:

* Think hard before tweaking the bootstrap CSS, it will make it harder to
  upgrade to future releases.

* No <style> tags in the HTML! Put CSS into the "morecss" block of a
  template instead.

* CSS that is used by multiple templates goes into static/css/ietf.css.

* Javascript that is only used on one template goes into the "js" block of
  that template.

* Javascript that is used by multiple templates goes into static/js/ietf.js.

* Every template includes jquery, so write jquery code and not plain Javascript.
  It's shorter and often faster.

* No CSS, HTML styling or Javascript in the python code!

* Templates that use jquery or bootstrap plugins include the css file in the
  "pagehead" block, and the Javascript in the "js" block.