datatracker/ietf/templates
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
..
admin/group/group Merged in [9766] from lars@netapp.com: 2015-07-18 12:42:38 +00:00
base Merged in [9924] from rjsparks@nostrum.com: 2015-08-01 10:12:40 +00:00
bootstrap3 Merged in [9766] from lars@netapp.com: 2015-07-18 12:42:38 +00:00
community Updated templates to use the static template tag for static files. 2015-08-01 14:53:59 +00:00
cookies Added preference editing support for the left_menu preference setting, and refactored the preference handling code substantially. Related to issues #1659 and #1663. 2015-06-22 18:47:28 +00:00
doc Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
group Merged in an update from trunk@9942. 2015-08-03 14:12:38 +00:00
help Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate. 2015-04-24 20:40:01 +00:00
idindex Fixed the incorrect blankline placemnt in the refactored template for id-index and id-abstracts, when generating abstracts. Fixes issue #1076. 2013-07-29 14:57:49 +00:00
iesg Merged in [9855] from lars@netapp.com: 2015-07-23 08:54:46 +00:00
ietfauth Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate. 2015-04-24 20:40:01 +00:00
ipr Updated templates to use the static template tag for static files. 2015-08-01 14:53:59 +00:00
liaisons Updated templates to use the static template tag for static files. 2015-08-01 14:53:59 +00:00
mailinglists Updated a bunch of links from http: to https: based on a patch from lars@netapp.com. 2015-04-24 21:45:04 +00:00
meeting Removed the agenda.csv template, which isn't used any more. 2015-08-23 19:04:56 +00:00
message Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate. 2015-04-24 20:40:01 +00:00
nomcom Remove spurious parenthesis from the template for viewing nomcom feedback. Commit ready for merge. 2015-08-10 17:59:04 +00:00
notify_expirations Add a clean_whitespace filter in some places to get rid of any newlines embedded in document titles. 2011-02-02 15:19:27 +00:00
person/mail Merged in [8870] from rjsparks@nostrum.com: 2015-01-21 20:44:06 +00:00
registration Merged in support of xml-source only drafts submissions from personal/henrik/submitxml/. 2015-07-22 21:53:23 +00:00
release Template tweak. 2015-08-23 19:28:28 +00:00
submit Merged in changes which make CDN serving of static files easy, adds bower management of external static files, and transitions the datatracker to use django's staticfiles framework. 2015-08-06 09:54:43 +00:00
sync Merged in [9774] from lars@netapp.com: 2015-07-18 13:02:53 +00:00
test Merged [2639] from fenner@fenron.net: 2010-11-08 08:47:36 +00:00
utils Script to run from cron to send daily messages to IETF Announce showing the email header field change. 2013-12-09 19:01:44 +00:00
.gitignore Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
401.html Updated templates to use the static template tag for static files. 2015-08-01 14:53:59 +00:00
404.html Updated templates to use the static template tag for static files. 2015-08-01 14:53:59 +00:00
500.html Updated templates to use the static template tag for static files. 2015-08-01 14:53:59 +00:00
base.html Merged in [9968] from lars@netapp.com: 2015-08-13 09:05:24 +00:00
debug.html Merged in [9733] from lars@netapp.com: 2015-07-18 08:55:30 +00:00
email_failed.html Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate. 2015-04-24 20:40:01 +00:00
googlea30ad1dacffb5e5b.html Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate. 2015-04-24 20:40:01 +00:00