Commit graph

57 commits

Author SHA1 Message Date
Henrik Levkowetz a4768bb514 Removed unused imports. Added some explicit orderings to avoid pagination issues.
- Legacy-Id: 14664
2018-02-21 23:54:31 +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
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 435b109673 Added needed fixtures to RedirectsTests
- Legacy-Id: 12717
2017-01-23 20:10:36 +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 17a7f59cd6 Deprecation fixes: Use request.GET or request.POST as appropriate, instead of request.REQUEST.
- Legacy-Id: 12533
2016-12-15 13:21:33 +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 7f772641d4 Change the cache key construction to deal with query arguments containing spaces. Fixes 500 errors which would otherwise occur.
- Legacy-Id: 12035
2016-09-25 13:53:22 +00:00
Henrik Levkowetz adb8625635 Introduced caching for the api resources.
- Legacy-Id: 10929
2016-03-15 23:12:04 +00:00
Henrik Levkowetz 846a02c3f9 Fixed pyflakes complaints introduced with pyflakes 1.1.0
- Legacy-Id: 10896
2016-03-04 21:24:26 +00:00
Henrik Levkowetz 2fe8dcb4c2 Added a very simple html version of the json API, to make it easier to explore the api manually.
- Legacy-Id: 9991
2015-08-09 16:28:55 +00:00
Henrik Levkowetz 770b36d575 Added generated (and sometimes manually tweaked) resources.py files.
- Legacy-Id: 8744
2014-12-14 20:33:25 +00:00
Henrik Levkowetz b6f15be079 Made ietf/redirects pyflakes-clean.
- Legacy-Id: 7479
2014-03-15 20:56:28 +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 3053bef4cc Resurrect URL coverage making it work with all tests, and move it to the test runner together with the template coverage report
- Legacy-Id: 6844
2013-12-07 19:31:32 +00:00
Ole Laursen f1a34faf08 Rewrite main url tests and redirects test to use the test database
- Legacy-Id: 6837
2013-12-07 13:29:48 +00:00
Robert Sparks 51ab8123d9 merged in from 4.20-ise
- Legacy-Id: 4502
2012-06-22 20:25:17 +00:00
Henrik Levkowetz 266b7820d0 Merged from log:branch/2.00@2363: Current release branch head to trunk.
- Legacy-Id: 2365
2010-07-21 12:48:05 +00:00
Henrik Levkowetz fa77ac30d5 Merged r840 from branch/2.00 to trunk, and updated version information in ietf/__init__.py
- Legacy-Id: 841
2007-07-04 21:17:57 +00:00
Henrik Levkowetz 1c2bcbf356 Merged r736 from branch/2.00 to trunk
- Legacy-Id: 737
2007-06-28 08:13:09 +00:00
Henrik Levkowetz cd030d3b43 Adding copyright notices to all python files
- Legacy-Id: 716
2007-06-27 21:16:34 +00:00
Bill Fenner e9c1f3bb21 Forgot to update the redirect for previous_announcement for the
url rearrangement.
 - Legacy-Id: 669
2007-06-26 20:36:22 +00:00
Bill Fenner a53aae26f5 Fix view_related_docs -> related. I don't know how I missed exporting
this in my previous commit.
 - Legacy-Id: 668
2007-06-26 20:25:50 +00:00
Bill Fenner 6d03969bac URL shuffling in iesg, idtracker and my
- Legacy-Id: 666
2007-06-26 20:21:31 +00:00
Bill Fenner 8d6b0bae97 Moves:
* announcements -> ann
 * liaisons -> liaison
 * idindex -> drafts
 * mailinglists -> list

I checked the tests and used a link checker locally, so hopefully
the fallout will be minimal.
 - Legacy-Id: 657
2007-06-26 18:29:55 +00:00
Bill Fenner 87337517ab Add previous_announcement show_detail command.
- Legacy-Id: 610
2007-06-22 01:48:06 +00:00
Henrik Levkowetz 814c18c41f Missed restoring .html on the meeting materials page.
- Legacy-Id: 501
2007-06-18 19:11:42 +00:00
Henrik Levkowetz 314ff9e722 Undoing overwrite of changes in [497] done by [499], and fix back the dots in .html and .txt
- Legacy-Id: 500
Note: SVN reference [497] has been migrated to Git commit ac5ae6d949

Note: SVN reference [499] has been migrated to Git commit a03c5c5ebc
2007-06-18 18:45:28 +00:00
Michael Lee a03c5c5ebc Update redirect fixture.
- Legacy-Id: 499
2007-06-18 18:18:41 +00:00
Henrik Levkowetz ac5ae6d949 Update the redirects to match the URL change in changeset [492].
- Legacy-Id: 497
Note: SVN reference [492] has been migrated to Git commit fdbf36f5d3
2007-06-18 18:13:47 +00:00
Bill Fenner 0e2d7be442 Implement ^flag^command syntax and use it for sub_state=1 and
rfc_flag=1

Don't return a trailing slash if the next-to-last element has
a dot in it (the inverse of the algorithm in APPEND_SLASH in the
common middleware)
 - Legacy-Id: 488
2007-06-18 15:06:44 +00:00
Bill Fenner 2a8124c002 Fix a couple redirects, add a couple more.
- Legacy-Id: 472
2007-06-17 13:42:31 +00:00
Henrik Levkowetz 9681754803 More test URLs
- Legacy-Id: 466
2007-06-17 09:30:35 +00:00
Bill Fenner 1e4320c2a1 Add some tests for the meeting agenda and proceedings
- Legacy-Id: 444
2007-06-16 21:12:45 +00:00
Henrik Levkowetz fdc522fee0 Fix a redirect URL
- Legacy-Id: 439
2007-06-16 16:42:42 +00:00
Henrik Levkowetz 6d46a27d6b More testurls and one more IPR redirect
- Legacy-Id: 434
2007-06-16 16:05:46 +00:00
Henrik Levkowetz bed8e1c90b Changing the redirect for desc.cgi. The previous cgi field couldn't work; unfortunately I can't figure out a way of getting this to work at all using only the current redirect mechanism. It seems to me to either need to do repeated redirect lookups, or have an 'id' table similar to the 'command' table...
- Legacy-Id: 428
2007-06-16 12:00:56 +00:00
Henrik Levkowetz 8aa7685020 Some more redirects
- Legacy-Id: 423
2007-06-16 11:10:35 +00:00
Henrik Levkowetz c5ca2114a3 Updated IPR app redirects
- Legacy-Id: 421
2007-06-15 19:48:49 +00:00
Henrik Levkowetz 8cb5eb7f03 Updated IPR app redirects
- Legacy-Id: 420
2007-06-15 19:46:15 +00:00
Henrik Levkowetz 7a8ecef98b Updated IPR app redirects
- Legacy-Id: 419
2007-06-15 19:44:17 +00:00
Henrik Levkowetz 00735412c1 Some IPR app redirects
- Legacy-Id: 418
2007-06-15 19:34:52 +00:00
Bill Fenner 9594e1ec82 Handle a null suffix properly.
- Legacy-Id: 417
2007-06-15 18:35:56 +00:00
Bill Fenner c5f65ea060 "pretty-print" with sed instead of xmllint, because of a limitation
in python's xml deserializer (whitespace is significant when
recognizing <None/> nodes, so a general pretty-printer will cause
them to not be recognized.)

This changes empty elements to the more verbose <foo></foo> format,
but that is handled properly by the xml parser.
 - Legacy-Id: 382
2007-06-14 12:18:40 +00:00
Bill Fenner 09e951f8ed Remove the hack, now that suffix can be null. This will
require `python manage.py reset redirects` to recreate
the table before syncdb.
 - Legacy-Id: 358
2007-06-13 04:15:22 +00:00
Bill Fenner 5de4ca9004 Don't allow script to be edited in the command admin.
Add unique_together to create a constraint and create an index that I expect to use.
 - Legacy-Id: 357
2007-06-13 04:13:23 +00:00
Bill Fenner 927e07b53f Allow suffix to be NULL.
- Legacy-Id: 356
2007-06-13 03:38:32 +00:00
Bill Fenner 57ab09459f Pop command if it's found.
Only pop if the key is in the dict.  (Note: an alternate
implementation would have been pop(arg, '') except the QueryDict
doesn't implement that usage)
 - Legacy-Id: 347
2007-06-12 20:49:09 +00:00