Commit graph

685 commits

Author SHA1 Message Date
Robert Sparks e630793802 Simple coverage tests for ietf/secr/drafts/reports.py. Commit ready for merge.
- Legacy-Id: 14830
2018-03-15 23:11:43 +00:00
Henrik Levkowetz 278d868d28 Added handling for when file magic doesn't return a definitive encoding for a file. Added a test case to excercise error cases.
- Legacy-Id: 14782
2018-03-13 16:45:50 +00:00
Henrik Levkowetz 8f4f50d5c4 Added a new argument encoding= to handle_upload_file() in order to be able to deal better with various upload encodings.
- Legacy-Id: 14780
2018-03-13 13:56:00 +00:00
Henrik Levkowetz 6e9bb00f13 Changed html cleaning to differentiate between fragment cleaning and document cleaning. Added an lxml-based cleaner for document cleaning, also permitting <style> tags (but not external style sheets).
- Legacy-Id: 14775
2018-03-13 12:48:22 +00:00
Henrik Levkowetz 2fd344f810 Tweaks to handle text types better and make set operation clearer.
- Legacy-Id: 14745
2018-03-07 21:10:47 +00:00
Henrik Levkowetz 802f201d81 Modified the sanitizer and upload handler to strip also the content of some tags, and to produce valid files (if the content is otherwise valid).
- Legacy-Id: 14744
2018-03-07 19:00:24 +00:00
Henrik Levkowetz 2828683cee Replaced html sanitization code that called html5lib directly with calls to bleach, and upgraded the requirements to let us use the latest html5lib and bleach.
- Legacy-Id: 14739
2018-03-06 18:35:34 +00:00
Henrik Levkowetz b92ad2f992 Added sanitization of uploaded html content for session agendas and minutes, and did some refactoring of the upload form classes.
- Legacy-Id: 14738
2018-03-06 15:55:30 +00:00
Henrik Levkowetz ad2139dc8f Fixed a settings typo.
- Legacy-Id: 14725
2018-03-03 18:30:19 +00:00
Henrik Levkowetz 4c6aa091b1 Added date information to the 'scheduled session' emails, and also a link to an ical file for the group sessions. Fixes issue #2461.
- Legacy-Id: 14722
2018-03-02 16:43:56 +00:00
Henrik Levkowetz de0c60884f Added a missing pyflakes pragma.
- Legacy-Id: 14713
2018-02-28 16:58:35 +00:00
Henrik Levkowetz 28bd9eadda Make sure that sessions listed in session scheduling notification emails are listed in time order. Fixes issue #2460.
- Legacy-Id: 14712
2018-02-28 13:28:51 +00:00
Henrik Levkowetz 28d64fe593 Removed unused imports
- Legacy-Id: 14675
2018-02-22 00:14:03 +00:00
Henrik Levkowetz 19980de327 Fixed a bug in the queryset argument of a form field declaration.
- Legacy-Id: 14669
2018-02-22 00:05:46 +00:00
Henrik Levkowetz 26bf387356 Replaced direct assignment to m2m fields with .clear() and .set()
- Legacy-Id: 14666
2018-02-21 23:58:25 +00:00
Henrik Levkowetz 06362ec046 Got rid of old migrations and created new initial migrations.
- Legacy-Id: 14662
2018-02-21 23:46:22 +00:00
Henrik Levkowetz 5638cf3da3 Changed all usage of ForeignKey and OneToOneFiled in model.py files to the compatibility versions from ietf.utils.models.
- Legacy-Id: 14661
2018-02-20 15:36:05 +00:00
Robert Sparks dfc1d2aa9a Warn when putting a draft on a telechat that is so close that directorates will probably not have time to complete a review. Fixes #2381. Commit ready for merge.
- Legacy-Id: 14539
2018-01-18 22:14:30 +00:00
Henrik Levkowetz edcfcd11f1 Added more logging during draft resurrection. Added a guard agains draft status changes while the draft expiration loop is running.
- Legacy-Id: 14488
2018-01-06 16:01:21 +00:00
Henrik Levkowetz 92db803bac Removed code that has been marked unreachable for more than 5 months.
- Legacy-Id: 14472
2017-12-29 19:48:18 +00:00
Henrik Levkowetz f697d9ecb6 Merged in [14404] from rjsparks@nostrum.com:
Include an explicitly set Responsible ADs email addresses in generated aliases when a document has a group.
 - Legacy-Id: 14424
Note: SVN reference [14404] has been migrated to Git commit e36cad65ed
2017-12-15 23:57:41 +00:00
Henrik Levkowetz 1f976da5c1 Third part of document read refactoring, after [14406] and [14410]. This replaces all usage of the non-unicode-aware get_document_content() function with unicode-aware Document.text() or Document.text_or_error() methods. This was triggered by yet another report of unicode content not being shown properly, and should fix all instances of document (drafts, agendas, minutes, etc.) display in the datatracker not handling unicode characters properly.
- Legacy-Id: 14411
Note: SVN reference [14406] has been migrated to Git commit 967ece7e7d

Note: SVN reference [14410] has been migrated to Git commit 660c81c272
2017-12-11 16:23:51 +00:00
Henrik Levkowetz 660c81c272 Tweaked the file content read refactoring in [14406] to try latin-1 conversion if unicode doesn't work.
- Legacy-Id: 14410
Note: SVN reference [14406] has been migrated to Git commit 967ece7e7d
2017-12-10 17:48:09 +00:00
Henrik Levkowetz 967ece7e7d Started refactoring of reading text from document files (drafts, charters, etc.) in order to normalise on one way of doing this, and making that return unicode rather than undecoded bytes. This is the first step of two, in order to gauge the possible issues and report on discrepancies.
- Legacy-Id: 14406
2017-12-08 21:51:11 +00:00
Henrik Levkowetz 98d234cd86 Refactored the handling of BallotDocEvent in tests, only creating them as needed, in preparation for stricter checks on state transitions to avoid mismatches between state and ballot.
- Legacy-Id: 14380
2017-11-30 16:02:31 +00:00
Ryan Cross bf3a49466f Improve test coverage for ietf.secr.sreq. Commit ready for merge
- Legacy-Id: 14362
2017-11-11 09:33:27 +00:00
Henrik Levkowetz 4f83548b49 Added a new field Meeting.days to capture the length of a meeting. This is necessary now that we have previous meetings officially starting Sunday, lasting to Friday, and future meetings starting Saturday, Lasting to Friday. We use Meeting.days to calculate Meeting.end_date(). Meeting.get_ietf_monday() and two cut_off() methods have also been updated to be instance methods instead of class methods, and to not assume that a meeting starts on Sunday.
- Legacy-Id: 14225
2017-10-25 13:38:15 +00:00
Ryan Cross b9bf77b543 Changed to not check timeslot type on delete because other types now have this option. Commit ready for merge
- Legacy-Id: 14211
2017-10-16 20:37:15 +00:00
Ryan Cross 4a71c1476f Fix issue creating new timeslots in secretariat scheduling tool caused by changing the meeting start date to a Saturday. Commit ready for merge.
- Legacy-Id: 14189
2017-10-05 20:28:39 +00:00
Henrik Levkowetz cbda2679a9 Removed some unreachable code.
- Legacy-Id: 14150
2017-09-22 14:45:21 +00:00
Ryan Cross a85a76247a Change announcement tool access function to use data from AnnouncementFrom objects. Fixes #2362. Commit ready for merge
- Legacy-Id: 14103
2017-09-06 21:29:59 +00:00
Henrik Levkowetz 868427a645 Merged in [13996] from rcross@amsl.com:
Move Announcement app From addresses out of code and into database table.  Fixes #1681.
 - Legacy-Id: 14006
Note: SVN reference [13996] has been migrated to Git commit d49787a0f6060e7db64f5a0e684bf1d980f85290
2017-07-29 18:12:45 +00:00
Henrik Levkowetz 0d1feacb42 Merged in [13957] from rjsparks@nostrum.com:
Moves Important Dates into the datatracker. Fixes #2338.
 - Legacy-Id: 13962
Note: SVN reference [13957] has been migrated to Git commit 2e6f26af23
2017-07-21 16:30:04 +00:00
Robert Sparks 2e6f26af23 Moves Important Dates into the datatracker. Fixes #2338. Commit ready for merge.
- Legacy-Id: 13957
2017-07-21 10:29:56 +00:00
Henrik Levkowetz 3d5862a9d4 Changed get_timeslot_for_filename() to not blow up in the presence of duplicate timeslots.
- Legacy-Id: 13952
2017-07-20 12:43:38 +00:00
Jean Mahoney 8bb332d8e8 Made email subject 'I-D ACTION:<draft>' consistent with other 'I-D Action: <draft>' email subjects. Fixes #1519. Commit ready for merge.
- Legacy-Id: 13892
2017-07-15 11:05:29 +00:00
Henrik Levkowetz ccf170bb5f Modified a test to make it less sensitive to timing vagaries causing arbitrary failures.
- Legacy-Id: 13846
2017-07-12 15:24:39 +00:00
Henrik Levkowetz d2395f9521 Merged in [13832] from rjsparks@nostrum.com:
Treat Area Groups similar to Working Groups and Research Groups where it makes sense to do so.
 - Legacy-Id: 13836
Note: SVN reference [13832] has been migrated to Git commit 2c92aa213d
2017-07-11 21:57:01 +00:00
Robert Sparks 2c92aa213d Treat Area Groups similar to Working Groups and Research Groups where it makes sense to do so. Commit ready for merge.
- Legacy-Id: 13832
2017-07-11 19:12:21 +00:00
Henrik Levkowetz 900174ae57 Added log.unreachable() calls to some functions believed to be unused.
- Legacy-Id: 13818
2017-07-09 15:01:21 +00:00
Henrik Levkowetz c5b52ae91e Merged in [13775] from rcross@amsl.com:
Refactor session edit page.  Add button to cancel a session, which sets the status.  Fixes #2296.
 - Legacy-Id: 13776
Note: SVN reference [13775] has been migrated to Git commit 9ac9493a70
2017-07-05 21:35:59 +00:00
Ryan Cross 9ac9493a70 Refactor session edit page. Add button to cancel a session, which sets the status. Fixes #2296. Commit ready for merge.
- Legacy-Id: 13775
2017-07-05 20:23:10 +00:00
Henrik Levkowetz 9415d65341 Merged in [13727] from rcross@amsl.com:
Remove legacy external interim meeting listing.  Install redirect to /meeting/past.  Fixes #2166.
 - Legacy-Id: 13742
Note: SVN reference [13727] has been migrated to Git commit 7d244c9a38
2017-06-30 18:36:10 +00:00
Henrik Levkowetz ad3701e457 Fixed an issue with the test_edit_replace_user() test
- Legacy-Id: 13740
2017-06-30 11:49:18 +00:00
Henrik Levkowetz ade8973015 Merged in [13726] from rcross@amsl.com:
Update secr.rolodex app to deactivate old Users when replaced on edit.  Fixes #2001.
 - Legacy-Id: 13735
Note: SVN reference [13726] has been migrated to Git commit a251076903
2017-06-29 20:39:52 +00:00
Ryan Cross 7d244c9a38 Remove legacy external interim meeting listing. Install redirect to /meeting/past. Fixes #2166. Commit ready for merge.
- Legacy-Id: 13727
2017-06-29 00:09:36 +00:00
Ryan Cross a251076903 Update secr.rolodex app to deactivate old Users when replaced on edit. Fixes #2001. Commit ready for merge.
- Legacy-Id: 13726
2017-06-28 20:43:28 +00:00
Henrik Levkowetz 2070bbfed6 Merged in [13722] and [13712] from rcross@amsl.com:
Remove all use of request.session from secretariat apps.  Add tests for affected views.  Fixes #1455.
 - Legacy-Id: 13724
Note: SVN reference [13712] has been migrated to Git commit 915b445bcffcd4687fb1677230b98282d22dd9a0

Note: SVN reference [13722] has been migrated to Git commit 3a2cb9d3d846168f75d9796b4e5383bdf10b1f60
2017-06-28 14:55:10 +00:00
Henrik Levkowetz b42f1cbeb5 Replaced the use of unaccent.asciify(), which has similar functionality to unidecode.unidecode(). Changed the draft parser to work exclusively with unicode text, which both makes the removal of unaccent easier, and takes us closer to Py35 compatibility. Adjusted callers of the draft parser to send in unicode.
- Legacy-Id: 13673
2017-06-18 18:23:18 +00:00
Henrik Levkowetz 7ecf7dfa44 Merged in [13615] and [13627]from rcross@amsl.com:
Changed views that use GET requests to delete objects to use POST.
Fixes #1796.
 - Legacy-Id: 13654
Note: SVN reference [13615] has been migrated to Git commit 3ccb550888

Note: SVN reference [13627] has been migrated to Git commit b908caf95c
2017-06-16 14:20:01 +00:00
Ryan Cross b908caf95c Add missing confirm_delete.html. Commit ready for merge.
- Legacy-Id: 13627
2017-06-14 16:27:46 +00:00
Ryan Cross 3ccb550888 Change views that use GET requests to delete objects to use POST. Fixes #1796. Commit ready for merge.
- Legacy-Id: 13615
2017-06-13 23:33:31 +00:00
Henrik Levkowetz bd0a772f17 Added a guard against trying to get the room ID from a timeslot without location in the secretariat schedule view.
- Legacy-Id: 13592
2017-06-13 09:59:05 +00:00
Henrik Levkowetz 6bf0e558ea Merged in [13588] from rcross@amsl.com:
Initialize Empty-Schedule with special sessions from previous meeting on creation.  Fixes #1500.
 - Legacy-Id: 13591
Note: SVN reference [13588] has been migrated to Git commit 8a98ba2516
2017-06-12 22:27:04 +00:00
Ryan Cross 8a98ba2516 Initialize Empty-Schedule with special sessions from previous meeting on creation. Fixes #1500. Commit ready for merge.
- Legacy-Id: 13588
2017-06-12 21:39:52 +00:00
Henrik Levkowetz 47b88e052e Merged in [13554] from rcross@amsl.com:
Several widgets in session request form require javascript.  Prevent usage of page without javascript. Fixes #1767.
 - Legacy-Id: 13578
Note: SVN reference [13554] has been migrated to Git commit 5188bdff6c
2017-06-10 07:15:38 +00:00
Ryan Cross 5188bdff6c Several widgets in session request form require javascript. Prevent usage of page without javascript. Fixes #1767. Commit ready for merge.
- Legacy-Id: 13554
2017-06-06 20:52:07 +00:00
Henrik Levkowetz 023a32715d Merged in ^/branch/iola/author-stats-r13145 from olau@iola.com, with additional features from ^/personal/henrik/6.52.1-authorstats.
- Legacy-Id: 13550
2017-06-06 18:36:59 +00:00
Henrik Levkowetz 2e20d9df66 Changed all instances of deprecated self.failUnless() unittest method to self.assertTrue().
- Legacy-Id: 13515
2017-06-04 16:24:34 +00:00
Henrik Levkowetz d20e6ce53a Merged in [13499] from rcross@amsl.com:
Add non WG Area choices to Parent field of secretariat groups edit form.  Fixes #1344.
 - Legacy-Id: 13513
Note: SVN reference [13499] has been migrated to Git commit a63d5132b2
2017-06-04 15:34:52 +00:00
Henrik Levkowetz d23650e382 Merged in [13492] from rcross@amsl.com:
Remove old proceedings generation code.  Fixes #2234.
 - Legacy-Id: 13510
Note: SVN reference [13492] has been migrated to Git commit 254e35fa56
2017-06-04 13:09:16 +00:00
Henrik Levkowetz d3decdcb61 Merged in [13485] from rcross@amsl.com:
Add import of YouTube session videos using YouTube Data API.  Fixes #2249.
 - Legacy-Id: 13509
Note: SVN reference [13485] has been migrated to Git commit 7ee2a16967
2017-06-03 23:58:05 +00:00
Henrik Levkowetz 495169de21 Merged in [13474] from rjsparks@nostrum.com:
Allow the nomcom to collect feedback on arbitrary topics. Fixes #2256 and #1846.
 - Legacy-Id: 13506
Note: SVN reference [13474] has been migrated to Git commit 4813177086
2017-06-03 13:50:44 +00:00
Ryan Cross a63d5132b2 Add non WG Area choices to Parent field of secretariat groups edit form. Fixes #1344. Commit ready for merge.
- Legacy-Id: 13499
2017-06-02 18:50:01 +00:00
Ryan Cross 254e35fa56 Remove old proceedings generation code. Fixes #2234. Commit ready for merge.
- Legacy-Id: 13492
2017-06-01 23:59:56 +00:00
Ryan Cross 7ee2a16967 Add import of YouTube session videos using YouTube Data API. Fixes #2249. Commit ready for merge.
- Legacy-Id: 13485
2017-06-01 18:36:46 +00:00
Henrik Levkowetz 76628be3fd Merged in ^/branch/iola/author-stats-r13145 from olau@iola.dk, and fixed some tests in code which moved after the latest merge with trunk. The test suite passes, but the migrations are _not_ ready to run, because of numbering conflicts (again due to code changes on trunk since the latest sync).
- Legacy-Id: 13479
2017-05-31 20:59:26 +00:00
Robert Sparks 4813177086 Allow the nomcom to collect feedback on arbitrary topics. Fixes #2256 and #1846. Commit ready for merge.
- Legacy-Id: 13474
2017-05-30 19:54:31 +00:00
Ryan Cross 930aaccc87 Add full edit capability for non-sessions. Fixes #2235. Commit ready for merge.
- Legacy-Id: 13418
2017-05-24 21:08:41 +00:00
Ryan Cross 7542e8daa3 Fix issue where deferring a ballot causes 500 error in Telechat app. Fixes #1342. Commit ready for merge.
- Legacy-Id: 13336
2017-05-12 19:30:06 +00:00
Ryan Cross a9096359ce Set parent of new areas to IESG. Fixes #2011. Commit ready for merge.
- Legacy-Id: 13328
2017-05-11 23:42:01 +00:00
Ryan Cross 073a7fb04a Fix escaping in abstracts in i-d-announce message. Fixes #1353. Commit ready for merge.
- Legacy-Id: 13326
2017-05-11 21:20:35 +00:00
Ryan Cross a35cb5f2d5 Fix Edit button of session request view. Fixes #2285. Commit ready for merge.
- Legacy-Id: 13309
2017-05-10 22:07:51 +00:00
Ryan Cross 9a9531d9f6 Change From address of session request notifications from session_request_developers@ietf.org to session-request@ietf.org. Fix requester information in session request cancellation email. Fixes #1621. Commit ready for merge.
- Legacy-Id: 13291
2017-05-09 21:33:14 +00:00
Ryan Cross 4d9bdcad6a Add group field to Roles add form validation. Fixes #2292. Commit ready for merge.
- Legacy-Id: 13276
2017-05-09 00:33:55 +00:00
Ryan Cross 462fc1a2e5 Refactor to prevent secretariat recordings entry page from timing out. Fixes #2287. Commit ready for merge
- Legacy-Id: 13275
2017-05-08 22:13:50 +00:00
Ryan Cross 6b7bb57597 Indicate official schedule in Select a Schedule drop-down. Fixes #1456. Commit ready for merge.
- Legacy-Id: 13274
2017-05-08 17:45:56 +00:00
Henrik Levkowetz 4c28fa2828 Added filtering of room resources in the session request form based on the 'used' flag of the room resource name. Tweaked admin to show 'used' for ResourceAssociations. Added Flipchart and U-shape-layout resources through a data migration, and added/modified resource icons.
- Legacy-Id: 13226
2017-04-15 19:13:44 +00:00
Henrik Levkowetz 1f2044bd83 Merged in [13212] from rcross@amsl.com:
Fix issue in telechat app where ballot positions for WG actions are incorrect.  Fixes #1336.
 - Legacy-Id: 13213
Note: SVN reference [13212] has been migrated to Git commit 70ccb0b769
2017-04-13 15:03:18 +00:00
Ryan Cross 70ccb0b769 Fix issue in telechat app where ballot positions for WG actions are incorrect. Fixes #1336. Commit ready for merge
- Legacy-Id: 13212
2017-04-13 00:59:36 +00:00
Henrik Levkowetz 4ef318b039 Merged in [13183] from rcross@amsl.com:
Fix error when selecting a document on the Telechat agenda that does not have a writeup.  Fixes #2262.
 - Legacy-Id: 13191
Note: SVN reference [13183] has been migrated to Git commit 8a725c6e1e
2017-04-11 00:21:29 +00:00
Ryan Cross 8a725c6e1e Fix error when selecting a document on the Telechat agenda that does not have a writeup. Fixes #2262. Commit ready for merge.
- Legacy-Id: 13183
2017-04-04 20:05:56 +00:00
Henrik Levkowetz 146d4548e9 Merged in [13134] from lars@netapp.com:
Shrink all images with image_optim.
 - Legacy-Id: 13163
Note: SVN reference [13134] has been migrated to Git commit fe622ecbb2ff9bd4c04d53d2df7344b7246e8881
2017-03-28 19:26:03 +00:00
Ole Laursen 5b677dc6ba Merge author stats branch into new branch from trunk
- Legacy-Id: 13159
2017-03-28 14:36:40 +00:00
Henrik Levkowetz 14c748df98 Changed the creation of temporary test dirs to use names which include the test class name, in order to make it possible to run test cases in parallel. Disabled coverage testing when running in parallel (those classes cannot be pickled and distributed to the test runner threads, and also won't pass coverage data back). Tweaked the TestCase.tempdir() method.
- Legacy-Id: 13157
2017-03-27 21:41:18 +00:00
Henrik Levkowetz d2c2d80341 Merged in [13112] from lars@netapp.com:
Fix various \'RemovedInDjango20Warning\' warnings.
 - Legacy-Id: 13141
Note: SVN reference [13112] has been migrated to Git commit 8a70e9773d
2017-03-26 22:06:47 +00:00
Lars Eggert 8a70e9773d Fix various "RemovedInDjango20Warning" warnings. Commit ready for merge.
- Legacy-Id: 13112
2017-03-25 19:16:45 +00:00
Lars Eggert afdf154e0a Change "ID Tracker" to "Datatracker" in various places. Fixes some of #2100.
Commit ready for merge.
 - Legacy-Id: 13108
2017-03-25 18:23:38 +00:00
Ryan Cross 4f5933ae20 Add placeholders and validations to secretariat non-session time input fields. Fixes #2208. Commit ready for merge.
- Legacy-Id: 13017
2017-03-16 23:10:14 +00:00
Henrik Levkowetz 0af1223b3c Merged in [12990] and [12991] from rcross@amsl.com:
Refactor session audio file import.  Add informative email.  Fixes #2164.
 - Legacy-Id: 12998
Note: SVN reference [12990] has been migrated to Git commit 084f8a7495

Note: SVN reference [12991] has been migrated to Git commit 6a5f180fb0
2017-03-12 12:15:37 +00:00
Ryan Cross 084f8a7495 Refactor session audio file import. Add informative email. Fixes #2164. Commit ready for merge
- Legacy-Id: 12990
2017-03-10 23:04:06 +00:00
Henrik Levkowetz 4daf66d11c Added DocEvent rev= parameter througout the code.
- Legacy-Id: 12978
2017-03-06 15:08:21 +00:00
Henrik Levkowetz ea70381f29 Merged in [12950] from rcross@amsl.com:
Fixes #2219.  Area Group chairs are denied material management access.
 - Legacy-Id: 12951
Note: SVN reference [12950] has been migrated to Git commit c6d1a59aa4
2017-03-02 21:21:07 +00:00
Ryan Cross c6d1a59aa4 Fixes #2219. Area Group chairs are denied material management access. Commit ready for merge.
- Legacy-Id: 12950
2017-03-02 20:14:39 +00:00
Henrik Levkowetz 5f053ad21a Cleaned up the remaining explicit url names, using dotted-paths to view
functions instead.  In all almost 700 changes.
 - Legacy-Id: 12923
2017-02-26 23:21:49 +00:00
Henrik Levkowetz 74af0f5658 Replaced another bunch of explicit url names with dotted-path to the view function.
- Legacy-Id: 12849
2017-02-15 22:11:20 +00:00
Ole Laursen b2ff10b0f2 Add support for extracting the country line from the author addresses
to the draft parser (incorporating patch from trunk), store the
extracted country instead of trying to turn it into an ISO country
code, add country and continent name models and add initial data for
those, add helper function for cleaning the countries, add author
country and continent charts, move the affiliation models to
stats/models.py, fix a bunch of bugs.
 - Legacy-Id: 12846
2017-02-15 18:43:57 +00:00
Henrik Levkowetz d4967c6413 Eliminated a few url() name= parameters.
- Legacy-Id: 12834
2017-02-13 21:39:11 +00:00
Henrik Levkowetz aa5e61d958 Updated all urlpatterns to use ietf.utils.urls.url() instead of django's,
in order to autogenerate dotted path url pattern names.  Updated a number
of url reverses to use dotted path, and removed explicit url pattern names
as needed.

Changed some imports to prevent import of ietf.urls before django
initialization was complete.


Changed 3 cases of form classes being curried to functions; django 1.10
didn't accept that.

Started converting old-style middleware classes to new-style middleware
functions (incomplete).

Tweaked a nomcom decorator to preserve function names and attributes, like
a good decorator should.

Replaced the removed django templatetag 'removetags' with our own version
which uses bleach, and does sanitizing in addition to removing explicitly
mentionied html tags.

Rewrote the filename argument handling in a management command which had
broken with the upgrade.
 - Legacy-Id: 12818
2017-02-11 14:43:01 +00:00
Henrik Levkowetz 19d585255a Django 1.10 does not permit the view argument to url() to be a string any more. Changed all cases view arguments to url() which were strings to instead reference the actual imported function.
- Legacy-Id: 12815
2017-02-10 14:49:16 +00:00
Henrik Levkowetz de3976bec0 Merged in Django 1.9 upgrade work from ^/personal/henrik/6.41.1-django-1.9
- Legacy-Id: 12764
2017-01-31 15:13:01 +00:00
Henrik Levkowetz 55b430b525 Merged in [12748] from rcross@amsl.com:
Fixes #2172.  Add Requested Resources and People who must be there, to email notifications of session requests.
 - Legacy-Id: 12757
Note: SVN reference [12748] has been migrated to Git commit eeb35e997d
2017-01-30 23:22:45 +00:00
Ryan Cross eeb35e997d Fixes #2172. Add Requested Resources and People who must be there, to email notifications of session requests. Commit ready for merge.
- Legacy-Id: 12748
2017-01-27 23:32:52 +00:00
Ole Laursen 90051a1575 Add support for displaying and editing author affiliation and country
when submitting a draft, replace the Submission.authors line-based
text field with a JSON field
 - Legacy-Id: 12745
2017-01-27 16:10:31 +00:00
Ole Laursen 9308948195 Add person, affiliation and country (through django-countries) to
DocumentAuthor, rename author field to email and make it optional (for
modeling old email-less submissions), remove the authors many to many
referencing field from Document as it is not really pointing the right
place.

Update the Secretariat tools to show affiliation and country.

Add migration for getting rid of the fake email addresses that the
migration script created some years ago (just set the author email
field to null).
 - Legacy-Id: 12739
2017-01-26 17:10:08 +00:00
Henrik Levkowetz 650ffe3c15 Fixed some additional cases of template if statements not using '=='.
- Legacy-Id: 12715
2017-01-23 18:56:44 +00:00
Henrik Levkowetz 6de7be6953 Specified strip=False for another bunch of CharField form fields with Textarea widgets.
- Legacy-Id: 12711
2017-01-23 17:38:56 +00:00
Henrik Levkowetz 7d71a24358 Added a save for a session presentation object before adding a reference to it.
- Legacy-Id: 12673
2017-01-19 16:11:37 +00:00
Henrik Levkowetz 82760fb21f Deprecation fix: Changed all instances of the old syntax for the 'cycle' template tag to use the new syntax.
- Legacy-Id: 12672
2017-01-19 16:10:13 +00:00
Henrik Levkowetz 7b95411f58 The context_instance parameter to render_to_response() and render_to_string() is now deprecated. Fixed this, and generally changed the idiom render_to_response('template.html', {}, RequestContext(request)) to the newer and simpler render(request, 'template.html', {}). About 200 instances.
- Legacy-Id: 12637
2017-01-09 21:26:30 +00:00
Henrik Levkowetz d5460b8f7f Django 1.9: Merged work forward to copy of latest release.
- Legacy-Id: 12621
2016-12-22 17:30:50 +00:00
Henrik Levkowetz c2541ec04b Django 1.9: Removed deprecated use of django.conf.urls.patterns() from all urls*.py files.
- Legacy-Id: 12618
2016-12-22 17:21:57 +00:00
Henrik Levkowetz 8e9858379b Fixed some pyflakes and form initialization issues with the upgrade to DurationField.
- Legacy-Id: 12599
2016-12-21 17:03:39 +00:00
Henrik Levkowetz 67b2fc1107 Extended the form fields used for duration to accept additional formats, including formats the secretariat are currently using, in order to avoid trouble with the TimedeltaField --> DurationField transition.
- Legacy-Id: 12598
2016-12-21 15:26:32 +00:00
Henrik Levkowetz 3d6b370c59 Upgraded custom TimedeltaFields to use the builtin DurationField from Django 1.8, and adjusted forms and initialization values accordingly.
- Legacy-Id: 12597
2016-12-20 22:56:34 +00:00
Henrik Levkowetz ff9b8a9bdb Deprecation fixes: Explicitly say that redirects are permanent.
- Legacy-Id: 12532
2016-12-15 13:19:51 +00:00
Henrik Levkowetz 8e56935cfd Undid commit 12527, which contained much too much.
- Legacy-Id: 12528
2016-12-15 10:38:54 +00:00
Henrik Levkowetz e3c6e0ac6b Changed the state shown in all_id.txt for drafts which have entered IESG processing, but then been replaced, to show as 'Replaced' instead of 'In IESG Processing'. This is consistent with how they are shown in all_id2.txt.
- Legacy-Id: 12527
2016-12-15 10:36:15 +00:00
Henrik Levkowetz 216ed80529 Merged in code from rcross@amsl.com to bring back the automatic conversion of slides from powerpoint to pdf.
- Legacy-Id: 12379
2016-11-17 07:30:14 +00:00
Henrik Levkowetz 0a15bf9bb6 Merged in [12326] from housley@vigilsec.com:
Allow WG Chairs to manage the meeting materials when starting from the old WG Chair Dashboard in ietf.secr.proceedings
 - Legacy-Id: 12370
Note: SVN reference [12326] has been migrated to Git commit a37f41823c
2016-11-17 00:26:51 +00:00
Russ Housley a37f41823c Allow WG Chairs to manage the meeting materials when starting from the old WG Chair Dashboard in ietf.secr.proceedings
- Legacy-Id: 12326
2016-11-12 05:40:12 +00:00
Ryan Cross f29100ab3a Change non-working-group-session edit view to use same group options available when creating the non-working-group-sessions. Commit ready for merge.
- Legacy-Id: 12320
2016-11-12 04:18:22 +00:00
Henrik Levkowetz 1a92efb77e Merged in ^/branch/proceedings/6.33.1.dev0@12141 from rcross@amsl.com:
Added meeting proceedings introduction pages: Progress Report and Attendees.  Added a data migration to provide proceedings introduction information for IETF 95 and 96.
 - Legacy-Id: 12150
2016-10-14 15:48:10 +00:00
Ryan Cross 743ec4d7ff Refactor Proceedings Introduction pages tests and implementation. Commit ready for merge
- Legacy-Id: 12140
2016-10-13 23:31:03 +00:00
Ryan Cross c3d4cc1aea Add meeting proceedings introduction pages: Progress Report and Attendees. Commit ready for merge.
- Legacy-Id: 12111
2016-10-10 21:21:02 +00:00
Henrik Levkowetz 8c34e9d78d Merged in ^/branch/proceedings/6.33.1.dev0 from rjsparks@nostrum.com and rcross@amsl.com. This provides new ietf meeting proceedings pages.
- Legacy-Id: 12028
2016-09-23 17:33:43 +00:00
Robert Sparks 2042f981bd Changed default for apply_to_all for Slide uploads to False.
Added redirect for non-secretariat users from ietf.secr.proceedings.views.select to ietf.meeting.views.materials.
Added a note to the secr upload_footer pointing to where material upload is now done.
Modified the links on the group meetings page to make it less likely to miss the link to the session materials.
Used class anchor target to clean up landing on the right session of multiple sessions on a group's session details page. Modified the materials page to only add a fragment asking for that anchor for non-ag/wg/rg groups.
Only show the link to the (now) secretariat-only proceedings manipulation page if the user is the secretariat. Relabelled the link to better reflect the page's remaining purpose.
Changed the session_details "Artifacts" panel header to "Agenda, Minutes, and Bluesheets". Added a footer to the "Slides" panel calling out drag-and-drop reordering.
Commit ready for merge.
 - Legacy-Id: 12018
2016-09-22 20:15:57 +00:00
Robert Sparks 3ef256b959 Fixed an rm that should have been an svn rm. Commit ready for merge.
- Legacy-Id: 12003
2016-09-19 20:32:32 +00:00
Robert Sparks 0f6e3f434e Closed off the old paths for materials upload (redirecting some old entry points). Commit ready for merge.
- Legacy-Id: 12000
2016-09-19 19:06:22 +00:00
Ryan Cross c1cc1d639f Fix issue with proceedings for training sessions. Commit ready for merge.
- Legacy-Id: 11988
2016-09-14 17:49:29 +00:00
Henrik Levkowetz ec684e1b4e Added a pylint rc-file, and fixed or silenced a number of issues found by pylint using the settings .pylintrc (which enable only error checking).
- Legacy-Id: 11941
2016-09-08 14:48:59 +00:00
Henrik Levkowetz 7e6ed23f70 Merged in [11858] from rjsparks@nostrum.com:
Merge forward Ryan's IETF Overview pages.
 - Legacy-Id: 11874
Note: SVN reference [11858] has been migrated to Git commit cb3af1a2d9
2016-08-25 13:36:48 +00:00
Henrik Levkowetz e555fe9687 Merged in [11849] from rcross@amsl.com:
Fix bug with main secr/proceedings page and add test.
 - Legacy-Id: 11871
Note: SVN reference [11849] has been migrated to Git commit f5fab30d63
2016-08-25 11:23:47 +00:00
Robert Sparks cb3af1a2d9 Merge forward Ryan's IETF Overview pages. Commit ready for merge.
- Legacy-Id: 11858
2016-08-24 17:20:54 +00:00
Ryan Cross f5fab30d63 Fix bug with main secr/proceedings page and add test. Commit ready for merge.
- Legacy-Id: 11849
2016-08-23 18:18:09 +00:00
Henrik Levkowetz 4b0a9360f0 Merged in ^/branch/iola/event-saving-refactor-r10291, which refactors document saving to always use doc.save_with_history(events), and requires accompanying events. This branch also provides refactoring of recurring regexes in url patterns into a dictionary. As part of the merge, also refactored new code which didn't use the save_with_history() method.
- Legacy-Id: 11840
2016-08-23 10:52:08 +00:00
Henrik Levkowetz 72d9017d63 Merged in [11780] from rjsparks@nostrum.com:
Removed bluesheet upload from the secr/ bluesheets generation page. Added navigation to session details from the meeting materials view rows.
 - Legacy-Id: 11815
Note: SVN reference [11780] has been migrated to Git commit 9b295b1b5e346afafdcaf3d00b0b120a1b826e7f
2016-08-17 22:52:11 +00:00
Henrik Levkowetz 6f05b23837 Merged in [11778] from rjsparks@nostrum.com:
Enabled and refined document_main view for bluesheets.
Improved migration for 95 and 96 bluesheets, adding DocAlias and DocEvent creation.
Added bluesheet upload to the session details view.
Moved a function out of secr/proceedings/views into its own util.py file to allow reusing it in other modules without introducing circular imports.
 - Legacy-Id: 11811
Note: SVN reference [11778] has been migrated to Git commit 0611444b36bc071e8db068a093cc1ad93bb69659
2016-08-17 18:28:02 +00:00
Robert Sparks 44cd9e0920 Moved the materials start, cutoff, and revision dates into the Meeting object
- Legacy-Id: 11760
2016-08-05 20:44:05 +00:00
Henrik Levkowetz d117b9399d Merged in [11708] from rcross@amsl.com:
Restrict session request options to groups of type WG,RG or AG. Add new mailtrigger to names fixture.
 - Legacy-Id: 11716
Note: SVN reference [11708] has been migrated to Git commit 10baa54a07
2016-07-19 11:09:57 +00:00
Henrik Levkowetz eb92924821 Merged in [11699] from rcross@amsl.com:
Change blue_sheet_generate() to only generate blue sheets for WG and RG group types that have sessions on the official schedule.
 - Legacy-Id: 11715
Note: SVN reference [11699] has been migrated to Git commit f6301913f6
2016-07-19 10:58:27 +00:00
Ryan Cross 10baa54a07 Restrict session request options to groups of type WG,RG or AG. Add new mailtrigger to names fixture. Commit ready for merge.
- Legacy-Id: 11708
2016-07-18 11:39:36 +00:00
Henrik Levkowetz 4e31c4ed12 Merged in [11697] from rcross@amsl.com:
Changed check_audio_files() to only consider sessions on the official
schedule.  Fixes some 500 errors.
 - Legacy-Id: 11706
Note: SVN reference [11697] has been migrated to Git commit 2e02011725
2016-07-18 10:55:47 +00:00
Ryan Cross f6301913f6 Change blue_sheet_generate() to only generate blue sheets for WG and RG group types that have sessions on the official schedule. Commit ready for merge.
- Legacy-Id: 11699
2016-07-18 09:13:43 +00:00
Ryan Cross 2e02011725 Changed check_audio_files() to only consider sessions on the official
schedule.  Fixes some 500 errors.  Commit ready to merge.
 - Legacy-Id: 11697
2016-07-17 14:24:01 +00:00
Henrik Levkowetz 5f1f06631c Merged in [11686] from rcross@amsl.com:
A refactor to give secretariat a broader selection of groups to choose from when scheduling non-working group sessions.
 - Legacy-Id: 11694
Note: SVN reference [11686] has been migrated to Git commit b195beb3ad
2016-07-17 11:48:11 +00:00
Henrik Levkowetz b0a0bbbe63 Merged in [11681] from suresh.krishnan@ericsson.com:
Allowed ADs to manage out of area working groups and upload proceedings for them. Fixes issue #1648.
 - Legacy-Id: 11693
Note: SVN reference [11681] has been migrated to Git commit f570ff803d
2016-07-17 11:16:09 +00:00
Ryan Cross b195beb3ad A refactor to give secretariat a broader selection of groups to choose from when scheduling non-working group sessions. Commit ready for merge.
- Legacy-Id: 11686
2016-07-16 15:50:16 +00:00
Suresh Krishnan f570ff803d Allowed ADs to manage out of area working groups and upload proceedings for them. Fixes issue #1648. Commit ready for merge.
- Legacy-Id: 11681
2016-07-16 14:11:55 +00:00
Henrik Levkowetz 61540ac4bb Carry patches to the production back to trunk.
- Legacy-Id: 11673
2016-07-16 13:33:16 +00:00