Henrik Levkowetz
726fcbf27d
Removed all __future__ imports.
...
- Legacy-Id: 17391
2020-03-05 23:53:42 +00:00
Henrik Levkowetz
2d7c9629aa
Added 'from __future__' imports all over the place, to bring code behaviour into closer alignment between python2 and python3
...
- Legacy-Id: 16446
2019-07-15 15:40:51 +00:00
Henrik Levkowetz
f5ae2541ad
Replaced multiple asserts with assertContains().
...
- Legacy-Id: 16353
2019-07-01 14:09:12 +00:00
Robert Sparks
87bda66740
Converted several secr apps to use factories for tests. Commit ready for merge.
...
- Legacy-Id: 15568
2018-10-12 22:08:31 +00:00
Henrik Levkowetz
6c3ec5b18e
Added Email origin to Email record creation throughout the codebase.
...
- Legacy-Id: 15149
2018-05-17 16:56:26 +00:00
Ryan Cross
01bfbff170
Remove unused roles/forms.py. Commit ready for merge
...
- Legacy-Id: 14845
2018-03-17 15:49:02 +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
2e20d9df66
Changed all instances of deprecated self.failUnless() unittest method to self.assertTrue().
...
- Legacy-Id: 13515
2017-06-04 16:24:34 +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
Lars Eggert
8a70e9773d
Fix various "RemovedInDjango20Warning" warnings. Commit ready for merge.
...
- Legacy-Id: 13112
2017-03-25 19:16:45 +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
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
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
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
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
8ca48aac42
Make group acronym regex patterns consistent.
...
There were multiple different regex patterns in different urlpattern
declarations, with some of them permitting characters which should not
occur in group acronym. Changed them to consistently use [-a-z0-9]+ .
- Legacy-Id: 11651
2016-07-13 19:19:15 +00:00
Henrik Levkowetz
4cac784522
Renamed a bunch of identically named MainTestCase classes.
...
- Legacy-Id: 10913
2016-03-06 18:18:38 +00:00
Henrik Levkowetz
cf7d794b09
Modified the test data to use some AD and WG chair names that contain non-ascii characters, and fixed test issues found.
...
- Legacy-Id: 10418
2015-11-04 07:34:56 +00:00
Ole Laursen
6f044eea08
Summary: Move definition of document names and group acronyms to
...
settings.URL_REGEXPS, partly to cleanup the urls.py files, partly to
make sure that all URL patterns agree on what constitutes a name
- Legacy-Id: 10114
2015-10-01 14:16:16 +00:00
Henrik Levkowetz
86997e1e95
Turned the api.py file into a module. Moved the makeresources management command to the api module. Added some api tests. Added crawling of api files to the test-crawler. Adjusted some resource files discovered by the test suite and test-crawler. Removed a bunch of empty model files.
...
- Legacy-Id: 9144
2015-03-03 20:23:36 +00:00
Ryan Cross
097b936ca8
Remove secauth middleware. Replace with role_required decorators. Commit ready for merge
...
- Legacy-Id: 8624
2014-11-09 02:32:41 +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
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
498777ad24
Made ietf/secr/{drafts,roles,ipradmin} pyflakes-clean.
...
- Legacy-Id: 7482
2014-03-15 22:06:48 +00:00
Henrik Levkowetz
5bef5d11ae
Made doc/ pyflakes-clean.
...
- Legacy-Id: 7462
2014-03-15 16:09:47 +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
d86789608a
Remove use of "groupgroup" fixture from Secretariat apps, it looks
...
like they don't actually depend on it, and the fixture itself is
unfortunately not complete so Django refuses to load it
- Legacy-Id: 6938
2013-12-16 13:16:29 +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
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
9457669310
Merge in changes from the old shimfree branch
...
- Legacy-Id: 6764
2013-11-27 12:55:50 +00:00
Henrik Levkowetz
e4f4467725
Changed tests to use our own subclassed TestCase, and changed almost all fixtures to be perma_fixtures.
...
- Legacy-Id: 6320
2013-09-30 20:36:20 +00:00
Ole Laursen
c191a691e0
Remove "names" fixture from all tests, since it's now loaded once just
...
after creating the test database through the global test fixture
mechanism - this speeds up multiple tests considerably
- Legacy-Id: 6305
2013-09-29 17:35:59 +00:00
Henrik Levkowetz
7e67b40a87
Merged in branch/amsl/trunkmerge@5449 from rcross@amsl.com, with some tweaks. This provides the secretariat apps.
...
- Legacy-Id: 5482
2013-03-05 22:43:31 +00:00