Commit graph

435 commits

Author SHA1 Message Date
Henrik Levkowetz 6036a09dca Merged in [8136] from denghui@chinamobile.com:
add revision number for ballot input Fixes issue #911.
 - Legacy-Id: 8144
Note: SVN reference [8136] has been migrated to Git commit 9371ca969f
2014-07-19 21:33:02 +00:00
Timothy B. Terriberry e9c79a9e19 Allow IRTF chair to adopt a draft into any RG.
Fixes #1082.
Commit ready for merge.
 - Legacy-Id: 8143
2014-07-19 21:15:47 +00:00
Shane Kerr 5639bc79fa Added untrack to document and search pages. Implements #1381. Branch ready for merge.'
- Legacy-Id: 8140
2014-07-19 21:03:51 +00:00
Shane Kerr ea05042d12 Provide "untrack" option in the search results page.
- Legacy-Id: 8139
2014-07-19 21:00:22 +00:00
Deng Hui 9371ca969f add revision number for ballot input Fixes issue #911. commit ready for merge
- Legacy-Id: 8136
2014-07-19 20:41:06 +00:00
Shane Kerr 4d71417817 Untrack this document button added to draft document view.
- Legacy-Id: 8130
2014-07-19 19:44:30 +00:00
Henrik Levkowetz 27a5e27e20 Merged in [8122] from gnocuil@gmail.com:\n Force mailing to secretary when a charter state changed to internal or external review. Fixes ticket #1444.
- Legacy-Id: 8128
Note: SVN reference [8122] has been migrated to Git commit 8ca62eae6d
2014-07-19 18:34:21 +00:00
Cong Liu 8ca62eae6d Force mailing to secretary when a charter state changed to internal or external review. Fixes ticket #1444. Commit ready for merge.
- Legacy-Id: 8122
2014-07-19 16:12:21 +00:00
Robert Sparks 4de405e8d3 Use the name field from the materials upload form. Fixes ticket #1445. Commit ready for merge.
- Legacy-Id: 8099
2014-07-16 14:47:39 +00:00
Henrik Levkowetz f07e02b462 Merged in [8057] from olau@iola.dk:\n Change Document.get_absolute_url to handle case of non-meeting-based group materials, fixes #1440
- Legacy-Id: 8064
Note: SVN reference [8057] has been migrated to Git commit 9eba9f78d8
2014-07-13 21:40:41 +00:00
Ole Laursen 9eba9f78d8 Change Document.get_absolute_url to handle case of non-meeting-based group materials, fixes #1440
- Legacy-Id: 8057
2014-07-08 15:47:06 +00:00
Henrik Levkowetz 09f654b1f4 Merged in branch/iola/team-support from olau@iola.dk. This generalises and extends the group support for WGs and RGs so that also other groups, such as for instance the Edu Team, can have pages.
- Legacy-Id: 8013
2014-07-02 19:30:07 +00:00
Ole Laursen 20fb8ff315 Fix the now wrong comment about WG charter canonical names being able
to change
 - Legacy-Id: 7937
2014-06-26 16:31:17 +00:00
Ole Laursen e92e57acd2 Fix an instance of charter-ietf-%s that should really be charter-%s-%s
to support RG charters properly, also remove the dead code for
handling group acronym renames (it contained some instances of
charter-ietf-%s too)
 - Legacy-Id: 7936
2014-06-26 16:24:06 +00:00
Henrik Levkowetz f00f589e66 Renamed a very specialized function from email_secretariat() to email_iesg_secretary_re_charter().
- Legacy-Id: 7923
2014-06-17 16:31:12 +00:00
Henrik Levkowetz a03ee6b333 Changed the code to move drafts from the active draft repository to the draft archive so that all associated files will be moved, not just those with specifically listed extensions. This fixes the problem that .xml files associated with submitted drafts were moved to the unknown_ids subdirectory of the archive, instead of into the archive proper.
- Legacy-Id: 7922
2014-06-16 16:23:18 +00:00
Ole Laursen f9ee750afd Make it possible to adjust the name of new materials upon upload, also fix a couple of warnings from PyFlakes
- Legacy-Id: 7914
2014-06-13 12:30:42 +00:00
Henrik Levkowetz 9ff2b9ff9a Merged in support for RG pages, from branch/iola/rg-support.
- Legacy-Id: 7866
2014-06-09 20:52:14 +00:00
Ole Laursen 602feff7c9 Add tests for new material code
- Legacy-Id: 7850
2014-06-04 13:10:55 +00:00
Ole Laursen 6e83335f0f Fix a bunch of mistakes found by PyFlakes in the new materials code
- Legacy-Id: 7839
2014-06-03 11:28:27 +00:00
Ole Laursen b56b8deff9 Fix some bugs in displaying meeting-related materials in the new material
support under /doc/
 - Legacy-Id: 7838
2014-06-03 10:43:15 +00:00
Ole Laursen 2a1f902a67 Rewrite error handling in get_document_content to use a with statement
instead of finally
 - Legacy-Id: 7837
2014-06-03 10:42:33 +00:00
Ole Laursen 88cf68d43f Move group material handling code to doc/material/ now that the view of the material is integrated into /doc/, fix a bunch of bugs
- Legacy-Id: 7834
2014-06-03 09:42:16 +00:00
Ole Laursen c94757405d Add a /doc/ page for materials (slides, agendas, minutes), link to that from the group materials page
- Legacy-Id: 7825
2014-06-02 12:18:42 +00:00
Ole Laursen 544cd702bb Drop the material doc type, instead present a choice of doc types for uploading materials (currently only slides) and use that, introduce a DOCUMENT_PATH_PATTERN setting for storing the files and only look in proceedings/ for documents that are actually meeting related
- Legacy-Id: 7802
2014-05-30 14:07:16 +00:00
Ole Laursen 47c9ccf0e1 Handle the case of asking for get_state() on an unsaved document
- Legacy-Id: 7779
2014-05-26 15:40:07 +00:00
Ole Laursen 3bfb6dcd43 Added support data for a tentative new material document type, add a upload/edit/revise page for uploading and revising group materials, still missing a couple of details and tests
- Legacy-Id: 7776
2014-05-23 16:26:56 +00:00
Henrik Levkowetz c1d75dab55 Merged [7748] from rjsparks@nostrum.com: Adjust when publication request button appears for documents in non-ietf streams. Fixes bug #1402.
- Legacy-Id: 7765
Note: SVN reference [7748] has been migrated to Git commit e9984b957b
2014-05-20 20:33:12 +00:00
Ole Laursen 0144ef366b Add description field on group, enable most group info page views to
work without a group type to pave the way for /group/<acronym>/ URLs,
make charter page more generic, enable it to handle descriptions and
walk over all personnel instead of picking out specific types
of roles, add a redirect view on /group/<acronym>/ to lead to either
documents/ or charter/, add simple group.features() class to be able
to condition on group features rather than specific group types,
adjust group pages menu accordingly
 - Legacy-Id: 7758
2014-05-20 10:19:26 +00:00
Robert Sparks e9984b957b Adjust when publication request button appears for documents in non-ietf streams. Fixes bug #1402. Commit ready for merge.
- Legacy-Id: 7748
2014-05-14 17:31:00 +00:00
Robert Sparks 18bfe663d5 Corrected Document vs DocHistory mismatch when working with status-change documents. Corrected creation of BallotDocEvent timestamps. Fixes bug #1396. Commit ready for merge
- Legacy-Id: 7705
2014-05-06 20:32:27 +00:00
Robert Sparks cb458b1689 Protect against cases where add_state_change_event can return None. Fixes bug # 1383. Commit ready for merge.
- Legacy-Id: 7677
2014-04-30 22:17:01 +00:00
Henrik Levkowetz fc0c605f5b Merged [7590] from rjsparks@nostrum.com: Change when the consensus field is displayed and who can edit it for IETF stream documents. Fixes bug #1380.
- Legacy-Id: 7612
Note: SVN reference [7590] has been migrated to Git commit 85458abee3a1474ba9fc476c087e08e24a62cb2e
2014-04-16 19:02:25 +00:00
Henrik Levkowetz 1d9e9e7745 Merged [7589] from rjsparks@nostrum.com: Functional changes allowing consensus to be set back to Unknown. Fixes ticket #1150.
- Legacy-Id: 7611
Note: SVN reference [7589] has been migrated to Git commit 7fb3e913e5377aa4e38c369aeefe2449e07e3c4e
2014-04-16 18:45:55 +00:00
Henrik Levkowetz 1070a42c87 Merged [7588] from rjsparks@nostrum.com: Schema migration to allow consensus to be set back to unknown. Related to ticket #1150.
- Legacy-Id: 7610
Note: SVN reference [7588] has been migrated to Git commit df1455485a03fbd391c8c6dfa5a85c6471003ec8
2014-04-14 15:53:37 +00:00
Henrik Levkowetz 5f0c22d1e7 Fixed a pyflakes issue with previous commit.
- Legacy-Id: 7608
2014-04-13 20:35:24 +00:00
Henrik Levkowetz 06ff160c73 Merged in [7586] from rjsparks@nostrum.com:
Fixed calculation of needed ballots for status-change documents. Added needed ballots tests for drafts and status-change docs. Fixes bug 1116.
 - Legacy-Id: 7607
Note: SVN reference [7586] has been migrated to Git commit e30ba32c78cf324f5875fcce3f89ff7e27f8453c
2014-04-13 20:10:21 +00:00
Henrik Levkowetz c50fccdb7e Merged in [7586] from rjsparks@nostrum.com:
Fixed calculation of needed ballots for status-change documents. Added needed ballots tests for drafts and status-change docs. Fixes bug 1116.
 - Legacy-Id: 7606
Note: SVN reference [7586] has been migrated to Git commit e30ba32c78cf324f5875fcce3f89ff7e27f8453c
2014-04-13 19:36:06 +00:00
Henrik Levkowetz 2c27eb481d Merged in [7519] from olau@iola.dk:
Remove uses of gzip middleware - the decorator thing breaks the ETags for some reason, as noted in issue #518, and it seems consensus is that we should do this in Apache instead for the whole site
 - Legacy-Id: 7602
Note: SVN reference [7519] has been migrated to Git commit 9ddecc1970
2014-04-12 18:50:01 +00:00
Henrik Levkowetz 156b0d4e3a Changed the code to use django's own authentication, instead of http basic auth. This will let people log out, and will also use stronger password hashing than basic auth. Added a login page, and logout links, and links from the logged in username (in the upper right corner) to the user's profile page.
- Legacy-Id: 7580
2014-04-07 18:56:44 +00:00
Henrik Levkowetz b02b0a96df All tests pass, except for some pyflakes tests which I believe are fixed in trunk.
- Legacy-Id: 7579
2014-04-06 20:04:36 +00:00
Ole Laursen dbead00fcc Hide IESG tabs for non-WG charters. Fix spelling mistake (IEST).
- Legacy-Id: 7566
2014-04-02 12:30:00 +00:00
Ole Laursen 01461d1036 Make sure group state is set when approving charters for non-WGs
- Legacy-Id: 7565
2014-04-02 12:24:36 +00:00
Henrik Levkowetz 8c42989d5d Pyflakes cleanup compliant with pyflakes 0.8.1, which seems to find things 0.8.0 didn't fin.
- Legacy-Id: 7558
2014-04-01 16:25:18 +00:00
Ole Laursen f52e676793 Move chartering groups to /group/chartering/ (with a redirect from the old location), list RGs there too, and amend the previous fix to the chartering process for non-WGs so they have internal and external review states instead of just approved. Also move the code in wginfo/ to group/ as it is no longer just about info for WGs.
- Legacy-Id: 7556
2014-04-01 11:59:08 +00:00
Ole Laursen d3efeb421f Introduce basic charter support for non-WG groups
- Legacy-Id: 7550
2014-03-27 17:06:56 +00:00
Ole Laursen ad357e0068 Parameterize the <wg> in /wg/<acronym> to allow for RGs, add simple /rg/ overview page based on similar /wg/ overview page, fix links and other WG/RG-specific details. All the basic pages under /rg/ now appear to be working for RGs. Edit pages and permissions are not adapted yet, though.
- Legacy-Id: 7535
2014-03-22 13:11:23 +00:00
Henrik Levkowetz 5a424fe2da Merged in [7153] from rjsparks@nostrum.com:
Fixed a typo in code that looks for the IRTF chair email address while adding replaces relationships.
Made that code slightly more robust.
Fixes ticket #1253
 - Legacy-Id: 7531
Note: SVN reference [7153] has been migrated to Git commit 99c01fa54a
2014-03-21 11:55:51 +00:00
Ole Laursen 9ddecc1970 Remove uses of gzip middleware - the decorator thing breaks the ETags for some reason, as noted in issue #518, and it seems consensus is that we should do this in Apache instead for the whole site
- Legacy-Id: 7519
2014-03-19 17:40:21 +00:00
Henrik Levkowetz c19268f6a1 A second pass of pyflakes cleanup, removing additional bulk imports, fixing a bug in get_initial_notify(), and removing some dead (and buggy) code.
- Legacy-Id: 7509
2014-03-16 22:15:46 +00:00
Henrik Levkowetz 02031a01b9 Cleaned out some (arbitrary) submodule name imports into ietf.utils, and made the corresponding import statements import the names directly from the correct submodules.
- Legacy-Id: 7495
2014-03-16 07:09:38 +00:00
Henrik Levkowetz 8a6c121073 Made ietf/secr/groups pyflakes-clean.
- Legacy-Id: 7480
2014-03-15 21:13:21 +00:00
Henrik Levkowetz 108fe6b03f Fixed some pyflakes issues in the merged code.
- Legacy-Id: 7464
2014-03-15 16:32:11 +00:00
Henrik Levkowetz b9c38d3c06 Merged pyflakes fixes forward to new copy of trunk.
- Legacy-Id: 7463
2014-03-15 16:27:05 +00:00
Henrik Levkowetz 5bef5d11ae Made doc/ pyflakes-clean.
- Legacy-Id: 7462
2014-03-15 16:09:47 +00:00
Henrik Levkowetz b945275478 Merged [7386] from tterriberry@mozilla.com: Describe needed positions in document ballot mail.
This uses doc.utils.needed_ballot_positions() to calculate what is
 needed.
Fixes #924.
 - Legacy-Id: 7405
Note: SVN reference [7386] has been migrated to Git commit d42ccbe741
2014-03-04 20:52:15 +00:00
Henrik Levkowetz 8ff8056581 Merged [7383] from jmh@joelhalpern.com: fixes ticket #924
Changes counting logic in ballots to use actual number of ADs.
Causes ballot email to use utility to generate requirements text
 - Legacy-Id: 7404
Note: SVN reference [7383] has been migrated to Git commit 271c48c9c47bf63bee2289fad9224b624c388fba
2014-03-04 18:22:29 +00:00
Henrik Levkowetz ebc6608387 Merged in part of [7375] from jmh@joelhalpern.com.
Now sending draft update notices to IRSG for IRTF stream drafts.  Fixes issue #1227.
 - Legacy-Id: 7402
Note: SVN reference [7375] has been migrated to Git commit 5f89d9ab996c4b0519ec23accb288e02961c62bf
2014-03-04 18:12:38 +00:00
Henrik Levkowetz b297c67765 Merged [7396] from rcross@amsl.com: updated test for clean_up_draft_files.
- Legacy-Id: 7401
Note: SVN reference [7396] has been migrated to Git commit 852509c96d983e595fa082e13b771a7f89771803
2014-03-04 17:47:26 +00:00
Timothy B. Terriberry d42ccbe741 Describe needed positions in document ballot mail.
This uses doc.utils.needed_ballot_positions() to calculate what is
 needed.
Fixes #924.
Commit ready to merge.
 - Legacy-Id: 7386
2014-03-01 19:08:09 +00:00
Henrik Levkowetz dbc82f2b22 Merged [7365] from rjsparks@nostrum.com: Improve handling of status-change relation form submission when conditions (such as not running javascript) lead to the POST missing required fields.
- Legacy-Id: 7381
Note: SVN reference [7365] has been migrated to Git commit 9a7b186616823029fbe6bac5907bad50c5203e97
2014-03-01 18:08:43 +00:00
Robert Sparks ff48d32c08 Migration to repair missing StateDocEvents from wg chairs using
the datatracker to request publication of ietf stream documents.

Incremental improvement to the request publication view to create
those StateDocEvents going forward.

This is related to bug #1312
Commit ready to merge
 - Legacy-Id: 7371
2014-02-28 17:14:18 +00:00
Robert Sparks 31808eccb2 Allow 1-3 digit RFCs in status change documents.
Fixes bug #1321
Commit ready for merge
 - Legacy-Id: 7292
2014-02-24 15:43:32 +00:00
Henrik Levkowetz c52d7c00fe Removed a debug statement.
- Legacy-Id: 7243
2014-02-16 16:29:29 +00:00
Henrik Levkowetz 057dd43c73 Fixed a probem with wrong URLs in atom feeds, caused by caching. Fixes issue #1307.
- Legacy-Id: 7239
2014-02-16 15:45:06 +00:00
Henrik Levkowetz 295b484bea Merged [7210] from rjsparks@nostrum.com: Allow the IRTF Chair and the ISE to request a conflict review directly through the tracker.
Notify the Secretariat when someone other than the secretariat initiates a conflict review.
Notify IANA when anyone initiates a conflict review.
Fixes tickets #1287 and #1289
 - Legacy-Id: 7225
Note: SVN reference [7210] has been migrated to Git commit a0fd974c92
2014-02-09 21:01:29 +00:00
Henrik Levkowetz c83ef0c30b Merged [7077] from rjsparks@nostrum.com: Returns "there are no ballots to view yet" rather than 404ing when the ballot link is followed for a document that exists.
It is typical for last call to be issued (which includes a link to the ballot page) well in advance of creating any ballot for a document.
Fixes bug 1233
 - Legacy-Id: 7223
Note: SVN reference [7077] has been migrated to Git commit e93b5ec296
2014-02-09 20:36:36 +00:00
Henrik Levkowetz 3abaab1d98 Merged [7076] from rjsparks@nostrum.com:
Sets the State(type=draft) to Replaced when a document is replaced using views_draft.replaces.
Sets the state back to Active or Expired when a document is no longer replaced by another document.
Adds tests for the above functionality.
Provides a patch to repair the state of documents pointed to by RelatedDocument(relationship__slug='replaces') objects created by views_draft.replaces before this fix.
Fixes bug 1234
 - Legacy-Id: 7222
Note: SVN reference [7076] has been migrated to Git commit a3da5bbd87
2014-02-09 20:33:15 +00:00
Henrik Levkowetz 086c4290b7 Merged [6361] from rjsparks@nostrum.com:
Allow the secretariat and ads to change the title of a status change
document.  Fixes bug 1141.

Applied changes to adapt the code from Django 1.2 to 1.6: Provide a
quoted string to {% url %} and use request.user.person instead of
request.user.get_profile().
 - Legacy-Id: 7221
Note: SVN reference [6361] has been migrated to Git commit 7c4cf7002f
2014-02-09 18:46:19 +00:00
Henrik Levkowetz 690c36cd8a Merged [6359] from rjsparks@nostrum.com:
Send email to the secretariat when a status change document is put directly into the last-call-requested state.
Fixes bug 1139.
 - Legacy-Id: 7208
Note: SVN reference [6359] has been migrated to Git commit faabcb8328
2014-02-04 23:28:48 +00:00
Henrik Levkowetz 62e7b515a8 Added stream change and state change emails in adopt_draft() -- otherwise we wouldn't have the state change emails assumed in the previous commit. See issue #1246.
- Legacy-Id: 7207
2014-02-04 23:27:40 +00:00
Henrik Levkowetz 41c1c1a5fe Removing the extra (misleading) draft about WG adoption which is sent out in addition to the state change emails when a call for addoption (WG) or adoption (RG) is done using the 'Adopt Draft in Group' form. The state change messages should be sufficient, and are not misleading. Fixes issue #1246 (and 1290).
- Legacy-Id: 7206
2014-02-04 22:00:07 +00:00
Henrik Levkowetz 908aacceff Handle the case in is_downref() where the src file doesn't have a std_level or intended_std_level set.
- Legacy-Id: 7198
2014-01-31 19:08:49 +00:00
Henrik Levkowetz 2d420fac34 Merged additional django-port and shim-removal tweaks from olau@iola.dk: branch/iola/djangoport@7167.
- Legacy-Id: 7168
2014-01-26 16:30:52 +00:00
Robert Sparks 99c01fa54a Fixed a typo in code that looks for the IRTF chair email address while adding replaces relationships.
Made that code slightly more robust.
Fixes ticket #1253
Commit ready for merge
 - Legacy-Id: 7153
2014-01-21 20:53:07 +00:00
Henrik Levkowetz 6e97c2c8da Merged in the port from Django 1.2 to Django 1.6 from olau@iola.dk: branch/iola/djangoport@7121, and fixed some merge issues.
- Legacy-Id: 7152
2014-01-18 21:02:40 +00:00
Ole Laursen 1ab82bdbed Replace the somewhat fragile query for specific state descriptions
with a query for the appropriate event types, this should work now
that new events set the correct type and old events have been migrated
 - Legacy-Id: 7140
2014-01-15 23:32:17 +00:00
Ole Laursen 697f76bf84 Add migration to convert old state change events to StateDocEvents
with type changed_state from changed_document, this allows us to
easily query for them
 - Legacy-Id: 7139
2014-01-15 23:30:12 +00:00
Ole Laursen 886b6df981 Add match for "IESG state changed"
- Legacy-Id: 7130
2014-01-15 18:19:02 +00:00
Ole Laursen 87ca10d122 Remove usage of log_state_changed (and duplicate in
doc/utils_charter.py) in favour of add_state_change_event which has
slightly better API but otherwise does basically the same except it
sets an event type we can later search for. Also expand tests slightly
to exercise three more templates.
 - Legacy-Id: 7129
2014-01-15 17:52:00 +00:00
Ole Laursen 6b2d50db93 Implement missing charter tests as found by the coverage check
- Legacy-Id: 7127
2014-01-14 15:50:03 +00:00
Ole Laursen 7e00fa1424 Move the Secretariat group email utility to wginfo and the rest of the wgcharter stuff to doc/(views|urls|utils)_charter.py alongside the other document types
- Legacy-Id: 7121
2014-01-13 16:08:58 +00:00
Ole Laursen b4dfae121b Integrate old patch for warning on the request for publication page if
intended std level and consensus is not filled in for the draft before
sending it (as per discussion with Alice Russo) - the consensus check
is skipped for ISE drafts
 - Legacy-Id: 7103
2014-01-10 17:16:12 +00:00
Ole Laursen f591735b7d Fix subtle search bug found by stream pages tests, the query was
checking a StreamName against the slug, which happened to work with
MySQL because the stream name is the same as the slug, just uppercase
- but MySQL is case insensitive
 - Legacy-Id: 7091
2014-01-09 17:52:42 +00:00
Ole Laursen 84136cb5ae Add missing doc page tests, found by the coverage check
- Legacy-Id: 7087
2014-01-09 17:03:59 +00:00
Robert Sparks e93b5ec296 Returns "there are no ballots to view yet" rather than 404ing when the ballot link is followed for a document that exists.
It is typical for last call to be issued (which includes a link to the ballot page) well in advance of creating any ballot for a document.
Fixes bug 1233
Commit ready for merge
 - Legacy-Id: 7077
2014-01-07 23:16:44 +00:00
Robert Sparks a3da5bbd87 Sets the State(type=draft) to Replaced when a document is replaced using views_draft.replaces.
Sets the state back to Active or Expired when a document is no longer replaced by another document.
Adds tests for the above functionality.
Provides a patch to repair the state of documents pointed to by RelatedDocument(relationship__slug='replaces') objects created by views_draft.replaces before this fix.

Fixes bug 1234
Commit ready for merge
 - Legacy-Id: 7076
2014-01-07 22:58:52 +00:00
Ole Laursen a5f5eb84d3 With the new test discovery mechanism in Django 1.6 (inherited from
unittest2 in Python 2.7), manually importing tests from files starting
with test* will run them twice, so don't do that
 - Legacy-Id: 7030
2013-12-20 13:08:38 +00:00
Ole Laursen defb116721 Use prefetch_related to reduce the number of queries on the search page and in idindex generation, adjust a couple of members on Document slightly to not filter on relations (filtering doesn't work with prefetch_related)
- Legacy-Id: 6992
2013-12-18 16:58:34 +00:00
Ole Laursen cb4d5b7c2b Simplify make_test_data a bit by using the create_person helper for the chair and WG delegate, regularize the naming of those
- Legacy-Id: 6990
2013-12-18 16:27:02 +00:00
Ole Laursen 8afd3fa5b7 Rewrite wg_menu tag to use simple_tag instead of a full template Node,
also fix a bug in the cache apparently not being filled in correctly
 - Legacy-Id: 6971
2013-12-18 10:25:59 +00:00
Ole Laursen e2e6c243a1 Remove the complicated tag processing from ballot_icon, instead just
decorate the function with @simple_tag(takes_context=True)
 - Legacy-Id: 6970
2013-12-18 10:22:30 +00:00
Ole Laursen 7f277a8fbb Replace user.get_profile() with user.person, the profile stuff is deprecated since Django 1.5
- Legacy-Id: 6968
2013-12-18 10:13:40 +00:00
Ole Laursen ea24f5c3bd Import slugify from django.utils.text (introduced in Django 1.5)
- Legacy-Id: 6967
2013-12-18 10:00:58 +00:00
Henrik Levkowetz ecb5cd6526 Merged in branch/iola/shimfree@6856. This pretty much completes the shim removal. Next step is upgrading Django to 1.6, and then doing some final polishing.
- Legacy-Id: 6966
2013-12-17 21:29:05 +00:00
Ole Laursen d1782297ab assertEquals -> assertEqual in tests, the former is deprecated
- Legacy-Id: 6964
2013-12-17 12:52:24 +00:00
Ole Laursen d66ac15fc2 Rewrite a bunch of HttpResponseRedirect + url reverse calls to instead
take advantage of the redirect shortcut (introduced in Django 1.1)
 - Legacy-Id: 6960
2013-12-17 10:23:42 +00:00
Henrik Levkowetz 24fb84c7de Merged [6701] from rjsparks@nostrum.com:
Adds pages to show what a given document refers to and what refers to it.
Fixes bug #1194
commit ready for merge
 - Legacy-Id: 6951
Note: SVN reference [6701] has been migrated to Git commit d19967ac93
2013-12-16 22:15:52 +00:00
Ole Laursen 84a9f49053 mimetype -> content_type (mimetype is deprecated)
- Legacy-Id: 6945
2013-12-16 16:53:47 +00:00
Ole Laursen 5021ed5629 Port feed setup to new feed API where each feed is a class-based view
- Legacy-Id: 6939
2013-12-16 16:29:22 +00:00
Ole Laursen 8017c8eaf2 Fix a bunch of test errors, apparently the Textarea widget in Django
now outputs a newline in the beginning - this doesn't seem make a
difference for browsers, but it means testing with PyQuery needs to
strip the text to be able to check accurately
 - Legacy-Id: 6931
2013-12-16 11:47:32 +00:00
Ole Laursen 0006b9ddcc Make sure all model forms have a Meta.fields attribute
- Legacy-Id: 6927
2013-12-13 17:20:02 +00:00
Ole Laursen a2c13b70d1 Make sure all BooleanFields have an explicit default value (with
Django < 1.6 it used to be False implicitly)
 - Legacy-Id: 6908
2013-12-13 13:30:07 +00:00
Ole Laursen 9b8fe8bd50 Move is_safe to parameter on template filter
- Legacy-Id: 6902
2013-12-12 12:27:33 +00:00
Ole Laursen d1e60e533c Fix a couple of problems in previous URL conversion commit
- Legacy-Id: 6887
2013-12-11 17:13:49 +00:00
Ole Laursen 46247a2ba6 Port away from django.utils.truncate_(html_)words which is now gone, use the template filter versions instead
- Legacy-Id: 6885
2013-12-11 17:07:43 +00:00
Ole Laursen 6a98fec2c3 Use built-in json module in Python instead of simplejson bundled with Django
- Legacy-Id: 6883
2013-12-11 16:59:19 +00:00
Ole Laursen c15063f3c2 Adjust the import path for feeds
- Legacy-Id: 6879
2013-12-11 16:40:49 +00:00
Ole Laursen cfa0d47ca0 Port to new class-based generic redirect and simple template views, remove utils.lazy.reverse_lazy, it's now included in Django
- Legacy-Id: 6878
2013-12-11 16:36:09 +00:00
Ole Laursen f5b2cfbc42 Make MEDIA_URL end in slash
- Legacy-Id: 6874
2013-12-11 15:29:38 +00:00
Ole Laursen 3e709e3f24 Remove proxies
- Legacy-Id: 6826
2013-12-07 12:01:57 +00:00
Ole Laursen e63ac36b8f Remove shim layer from ietfauth, delete some dead code and migrate
remaining importers of ietfauth.decorators to ietfauth.utils
 - Legacy-Id: 6797
2013-12-05 16:24:03 +00:00
Ole Laursen 5f002cf0ac Fix some test errors
- Legacy-Id: 6795
2013-12-05 15:30:17 +00:00
Ole Laursen 18743a3e96 mark_safe result from parse_email_list filter, fix an import bug
- Legacy-Id: 6792
2013-12-04 18:25:44 +00:00
Ole Laursen bbcbfc3a05 Drop the obsolete backwards-compatible email.Utils import in
ietf_filters, add strip_email filter for getting rid of the email part
of a "name <email@example.com>" string, fix spelling mistake
 - Legacy-Id: 6791
2013-12-04 17:59:25 +00:00
Ole Laursen 8a4990cb1e Remove some redundant imports from doc/proxy.py
- Legacy-Id: 6783
2013-12-03 19:00:52 +00:00
Ole Laursen bb2d070679 Redo tests for IPR to cover all views, fix some bugs and add some
finishing touches
 - Legacy-Id: 6779
2013-12-03 18:33:07 +00:00
Ole Laursen cadedce023 Port cookies/ away from use of |equal filter, remove |equal filter
- Legacy-Id: 6776
2013-12-02 18:11:01 +00:00
Ole Laursen e9638cb1c2 Port IPR module to new schema, remove some cruft
- Legacy-Id: 6774
2013-12-02 16:34:00 +00:00
Ole Laursen 9457669310 Merge in changes from the old shimfree branch
- Legacy-Id: 6764
2013-11-27 12:55:50 +00:00
Ole Laursen 66bff20847 Remove legacy ballot_json view which has not worked for a while
- Legacy-Id: 6720
2013-11-19 16:07:29 +00:00
Ole Laursen 3a483461a2 Add simple split filter, as the opposite of the built-in join filter
- Legacy-Id: 6710
2013-11-15 12:49:37 +00:00
Robert Sparks d19967ac93 Adds pages to show what a given document refers to and what refers to it.
Fixes bug #1194
commit ready for merge
 - Legacy-Id: 6701
2013-11-11 23:12:53 +00:00
Henrik Levkowetz ba70c3067a Merged [6696] from tterriberry@mozilla.com:
Improve e-mails from replaced-by updates.

Fix an incorrectly-expanded file tag in the subject.
Fixes #1178.
Use a slightly more natural grammatical construct in the message body.
Fixes #1179.
 - Legacy-Id: 6699
Note: SVN reference [6696] has been migrated to Git commit 03896647cc
2013-11-08 18:56:24 +00:00
Henrik Levkowetz 9aefd3dccf Fixed the saving of shepherd writeups for documents in iesg processing without
a stream state (ad-sponsored documents). Fixes issue #1186 and #1187.
 - Legacy-Id: 6697
2013-11-08 16:33:35 +00:00
Timothy B. Terriberry 03896647cc Improve e-mails from replaced-by updates.
Fix an incorrectly-expanded file tag in the subject.
Fixes #1178.
Use a slightly more natural grammatical construct in the message body.
Fixes #1179.
 - Legacy-Id: 6696
2013-11-08 13:09:17 +00:00
Henrik Levkowetz c41bb723b9 Merged [6642] from tterriberry@mozilla.com:
Add 'Track this document' link on drafts.

Fixes #1085.
 - Legacy-Id: 6664
Note: SVN reference [6642] has been migrated to Git commit 0ffa8be8ea
2013-11-06 16:20:46 +00:00
Henrik Levkowetz 27895541a4 Merged [6641] from bartosz.balazinski@interdigital.com:
Added the new version of the shepherd writeup as a comment when it's edited.
The new version works like this:

 -  Any shepherd writeups done before the document is submitted for
    publication are not disclosed in the history.

 -  When the document is submitted for publication the available writeup (if
    available) is added to history.

 -  Any further writeups after the document has been submitted for publication
    are disclosed in the history.
 - Legacy-Id: 6662
Note: SVN reference [6641] has been migrated to Git commit a0a451881b
2013-11-06 16:06:07 +00:00
Henrik Levkowetz 28bc1d2dce Merged [6630] from jmh@joelhalpern.com:
Add document titles to status change request email.  Fixes issue #1069.
 - Legacy-Id: 6648
Note: SVN reference [6630] has been migrated to Git commit bb539aa0c2
2013-11-04 15:49:41 +00:00
Timothy B. Terriberry 0ffa8be8ea Add 'Track this document' link on drafts.
Fixes #1085.
 - Legacy-Id: 6642
2013-11-03 00:26:02 +00:00
Bartosz Balazinski a0a451881b Fix for issue 1121
- Legacy-Id: 6641
2013-11-03 00:15:49 +00:00
Henrik Levkowetz f029c88347 Merged [6629] from tterriberry@mozilla.com:
Allow wgchairs to edit replaces relationships.

This actually allows anyone with can_edit_stream_info permission
to edit the list. This does draft name completion, but does not
currently filter those names for likely replacements. Styling is
also basically non-existent.

Fixes #1002
 - Legacy-Id: 6639
Note: SVN reference [6629] has been migrated to Git commit 9ef29a323f
2013-11-02 23:41:51 +00:00
Henrik Levkowetz 7925223ef8 Merged [6622] from rjsparks@nostrum.com:
Refines Bill Fenner's regex based search through documents for references.
Populates RelatedDocument with relations for references for each type draft Document.
Replaces these reference relationships with updated copies on draft submission.

Note to deployer: There is a script to run in patches/fill_in_references.py that does the work of bringing the database up to date. It takes around 10 minutes to complete on a fast development laptop.

fixes bug #1173
 - Legacy-Id: 6633
Note: SVN reference [6622] has been migrated to Git commit a677a70df3
2013-11-02 23:04:28 +00:00
Joel M. Halpern bb539aa0c2 Add document titles to status change request email. Fixes issue #1069.
- Legacy-Id: 6630
2013-11-02 22:25:15 +00:00
Timothy B. Terriberry 9ef29a323f Allow wgchairs to edit replaces relationships.
This actually allows anyone with can_edit_stream_info permission
to edit the list. This does draft name completion, but does not
currently filter those names for likely replacements. Styling is
also basically non-existent.

Fixes #1002
 - Legacy-Id: 6629
2013-11-02 22:20:58 +00:00
Henrik Levkowetz e32d83939f Merged [6613] from adam@nostrum.com:
Ticket #1153: Fixes IPR disclosures being counted multiple times and counting of \'not yet approved\' IPR disclosures.
 - Legacy-Id: 6623
Note: SVN reference [6613] has been migrated to Git commit b72c8a7cfd
2013-11-02 21:28:19 +00:00
Robert Sparks a677a70df3 Refines Bill Fenner's regex based search through documents for references.
Populates RelatedDocument with relations for references for each type draft Document.
Replaces these reference relationships with updated copies on draft submission.

Note to deployer: There is a script to run in patches/fill_in_references.py that does the work of bringing the database up to date. It takes around 10 minutes to complete on a fast development laptop.

fixes bug #1173
 - Legacy-Id: 6622
2013-11-02 21:11:07 +00:00
Robert Sparks e309ff92b3 Don't insert references to self.
Move the data filler from a migration to a standalone script
 - Legacy-Id: 6620
2013-11-02 20:59:43 +00:00
Adam Roach b72c8a7cfd Ticket #1153: Fixes IPR disclosures being counted multiple times and counting of "not yet approved" IPR disclosures.
- Legacy-Id: 6613
2013-11-02 18:42:11 +00:00
Joel M. Halpern 5e00182ade Add the last call expiration date to the document header,
and remove duplicate code for producing the iest state summary.
 - Legacy-Id: 6612
2013-11-02 18:31:13 +00:00
Robert Sparks b18249222b Refines Bill Fenner's regex based search through documents for references.
Populates RelatedDocument with relations for references for each type draft Document.
Replaces these reference relationships with updated copies on draft submission.
Note to deployer: This migration takes around 10 minutes to complete on a fast development laptop.
 - Legacy-Id: 6572
2013-10-30 20:51:11 +00:00
Henrik Levkowetz bf75cd1bef Added a template filter to do required escaping in iCalendar pages.
- Legacy-Id: 6533
2013-10-29 22:20:51 +00:00
Ole Laursen 10dceef26d Refactor IESG agenda pages, put the agenda structure in a helper function in agenda.py, build the agenda up around this structure, and reuse this everywhere instead of duplicating the structure in various templates and the JSON view - this also fixes a couple of minor bugs where the copy-pasted copies were not entirely in sync
- Legacy-Id: 6454
2013-10-16 13:07:09 +00:00
Ole Laursen 1c8c87f88a Remove search for "IESG has approved and state has been changed to"
from state change doc event searches, these have been split up by a
migration and no longer exist
 - Legacy-Id: 6424
2013-10-11 13:19:07 +00:00
Ole Laursen 75a2c9ba0d Remove idwrapper compatibility code from ballot_icon.py
- Legacy-Id: 6423
2013-10-11 13:17:32 +00:00
Ole Laursen b3ed153015 Get rid of old in_group template tag, it's been superseded by has_role
- Legacy-Id: 6422
2013-10-11 13:13:23 +00:00
Ole Laursen b63c622564 Streamline a couple of doc helpers to prevent unnecessary DB lookups,
speeds up IESG discusses page up a fair bit
 - Legacy-Id: 6421
2013-10-11 13:07:16 +00:00
Ole Laursen dcfe368f74 Streamline a couple of doc helpers to prevent unnecessary DB lookups,
speeds up IESG discusses page up a fair bit
 - Legacy-Id: 6419
2013-10-11 13:05:33 +00:00
Henrik Levkowetz 697dcc450a If an exception is raised earlier in field validation, the
position field may not be set when we get to this point and
try to retrieve the value of a different field than the one
we're processing. Don't cause a new exception in that case.
 - Legacy-Id: 6416
2013-10-11 12:31:50 +00:00
Ole Laursen bfde86f52b Add support for status change in Document.get_file_path, ideally
someone would clean up the directory structure and we would transition
to something simpler
 - Legacy-Id: 6409
2013-10-10 15:54:32 +00:00