Henrik Levkowetz
bc05e7a8d0
Refactored many instances of msg.get_payload(decode=True).decode('utf-8') and similar to get_payload_text(msg), which uses msg.get_charset() to get the actual charset to do the decoding, in a consistent manner. Also removed some instances of force_str, but more remain.
...
- Legacy-Id: 17807
2020-05-16 20:20:05 +00:00
Henrik Levkowetz
726fcbf27d
Removed all __future__ imports.
...
- Legacy-Id: 17391
2020-03-05 23:53:42 +00:00
Henrik Levkowetz
ab173cb2eb
Removed further six usage: six.string_types, six.integer_types, six.moves.urllib instances.
...
- Legacy-Id: 17390
2020-03-05 20:46:58 +00:00
Jennifer Richards
b02b42da81
Create DocEvent when related IprDisclosure is posted or removed. Fixes #2811 . Commit ready for merge.
...
- Legacy-Id: 17284
2020-02-07 20:41:13 +00:00
Henrik Levkowetz
a4e49d8ec0
Merged in [16853] from rjsparks@nostrum.com:
...
Add submitted and posted dates to several ipr notification email messages. Fixes #2807 .
- Legacy-Id: 16899
Note: SVN reference [16853] has been migrated to Git commit f39d1568f0c4a8f4b1ebd3dee887fff6b3d8049b
2019-10-22 12:23:07 +00:00
Henrik Levkowetz
8f53f44953
Added some new formats to the regex validator for patent numbers and patent application numbers. This is still not comprehensive.
...
- Legacy-Id: 16638
2019-08-09 20:10:06 +00:00
Henrik Levkowetz
8c6eb3a30a
Python2/3 compatibility: Changed the use of open() and StringIO to io.open() etc.
...
- Legacy-Id: 16458
2019-07-15 19:14:04 +00:00
Henrik Levkowetz
9d5641da64
Removed unnecessary asserts on r.status_code; this will be checked by assertContains().
...
- Legacy-Id: 16416
2019-07-07 12:58:01 +00:00
Henrik Levkowetz
81fa6dc962
Fixed some issues with bulk changes related to assertContains()
...
- Legacy-Id: 16379
2019-07-04 16:04:39 +00:00
Henrik Levkowetz
97a555936d
Changed a large number of test assertions to use assertContains() and removed separate, now unnecessary,status_code checks. Also changed many assertTrue(... in ...) to use assertIn().
...
- Legacy-Id: 16346
2019-06-30 21:03:34 +00:00
Henrik Levkowetz
15e74e89cb
Converted instances of assertTrue(text in response.content) to the recommended assertContains(response, text), and similar for assertFalse(... in ...)
...
- Legacy-Id: 16336
2019-06-29 13:43:31 +00:00
Henrik Levkowetz
d7f5c84182
Initial 2to3 patch with added copyright statement updates.
...
- Legacy-Id: 16309
2019-06-27 14:40:54 +00:00
Henrik Levkowetz
db12f2b948
Fixed some name versus pk issues lingering after the Document/DocAlias primary key refactoring. Fixes issue #2729 .
...
- Legacy-Id: 16288
2019-06-19 12:57:52 +00:00
Henrik Levkowetz
426870b766
Merged in the Document and DocAlias primary key change and m2m work in ^/personal/henrik/6.96.1-docalias.
...
- Legacy-Id: 16261
2019-06-15 12:00:48 +00:00
Henrik Levkowetz
a2cafded25
Changed DocAlias to be many-to-many, in order to be able to handle STD aliases referring to multiple RFCs.
...
- Legacy-Id: 16249
2019-06-14 20:38:14 +00:00
Henrik Levkowetz
815602351f
This is a series of 50 migrations that changes the Document and DocAlias
...
primary keys from character strings to integers, and makes corresponding code
changes.
This was prompted by database limitations discovered when trying to make
DocAlias use a m2m document field; with 255 long strings as primary keys for
Document and DocAlias this violated the MySQL database limitations.
Changing the primary keys to integers should also improve efficiency.
Due to the data migrations which create the new integer primary keys and adds
corresponding integer foreign keys matching the previous string foreign keys
in all tables having foreign keys to Document and DocAlias, some of these
migrations take a long time. The total set of migrations are expected to have
a runtime on the order of 2 hours.
- Legacy-Id: 16237
2019-06-10 11:32:46 +00:00
Robert Sparks
775addc616
Use factories for ipr tests. Commit ready for merge.
...
- Legacy-Id: 15492
2018-09-28 23:16:46 +00:00
Henrik Levkowetz
ea7728b501
Changed calls to .related_that*() and .relations_that*() to use tuples rather than lists (a slight optimization).
...
- Legacy-Id: 15029
2018-04-07 10:47:16 +00:00
Robert Sparks
ce8f73fd9c
Factories for the ipr app. Coverage of ietf.ipr.views.ajax_search, and a factory-driven test of ietf.ipr.views.edit. Commit ready for merge.
...
- Legacy-Id: 14970
2018-03-29 15:29:55 +00:00
Henrik Levkowetz
9547646f81
Added a test for IPR edit.
...
- Legacy-Id: 14951
2018-03-27 17:55:11 +00:00
Henrik Levkowetz
717868cae2
Rewrote text_to_dict() and dict_to_text() to support unicode without RFC2822 encoding issues. Added initial values in IPR update forms, from the original disclosure, in order to make updates easier. Addresses issue #2413 .
...
- Legacy-Id: 14531
2018-01-17 00:21:34 +00:00
Henrik Levkowetz
5a1f3eaf36
Changed the patent information text fields to individual fields for patent number, inventor, title, date and notes, with validation. Fixes issue #2411 .
...
- Legacy-Id: 14499
2018-01-10 14:22:10 +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
876d4c93a4
Removed another explicit url() name which blocked a dotted-path reverse, causing 500 for ipr// urls.
...
- Legacy-Id: 12882
2017-02-19 19:52:56 +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
9d0f377242
Merged in [10624] from rcross@amsl.com:
...
Fixes #1873 . ValueError at /ipr/new-specific.
- Legacy-Id: 10651
Note: SVN reference [10624] has been migrated to Git commit 57f3acb69c
2016-01-12 17:34:36 +00:00
Ryan Cross
57f3acb69c
Fixes #1873 . ValueError at /ipr/new-specific. Commit ready for merge
...
- Legacy-Id: 10624
2015-12-22 21:00:28 +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
Henrik Levkowetz
f1a08564d1
Added a new machine-readable list of IPR declarations per draft, which also searches through related documents. Extended make_test_data() with a replaced document for the test draft.
...
- Legacy-Id: 10272
2015-10-23 16:34:44 +00:00
Robert Sparks
f5b6465e81
mailtoken becomes mailtrigger
...
- Legacy-Id: 10090
2015-09-17 20:03:45 +00:00
Robert Sparks
90c3426e2f
updated mailtoken utilities to match the model refactor. Morphed all the code using the utilities to match. Added paths to get Cc through as needed. Next up: Recipient selection form for the iesg save-and-send-email workflow
...
- Legacy-Id: 10040
2015-08-23 18:15:06 +00:00
Robert Sparks
8a74604a1b
Done with the second pass focusing on test coverage. Lots of test tweaks, some new tests, a couple of bugs fixed. The session request code views need to be redone to allow testing.
...
- Legacy-Id: 10035
2015-08-21 16:39:00 +00:00
Robert Sparks
5db9e0d6a8
checkpoint
...
- Legacy-Id: 10029
2015-08-19 19:53:09 +00:00
Robert Sparks
23a2ada5f9
checkpoint
...
- Legacy-Id: 10027
2015-08-18 18:52:22 +00:00
Henrik Levkowetz
2c4785adf6
Updated an IPR test to account for facelift changes.
...
- Legacy-Id: 9362
2015-04-02 19:50:00 +00:00
Henrik Levkowetz
625347cd2f
Merged trunk@9354 to facelift copy
...
- Legacy-Id: 9357
2015-04-02 06:51:34 +00:00
Robert Sparks
c307b1f734
Avoid creating blank line before headers on IPR notification email. Fixes #1609 . Commit ready for merge.
...
- Legacy-Id: 9142
2015-03-02 20:38:55 +00:00
Ole Laursen
336cc1bd14
Summary: Fix two failing IPR tests
...
- Legacy-Id: 8927
2015-01-27 16:28:02 +00:00
Ole Laursen
1124d6d018
Summary: Port the remaining parts of the IPR form to Bootstrap, and fix
...
some bugs in the port
- Legacy-Id: 8900
2015-01-23 16:47:22 +00:00
Ole Laursen
d0999c8b5e
Merge facelift-r8510 branch with trunk. The IPR tool still has some non-facelifted parts and ideosyncracies. Fix a couple of minor bugs (including infamous empty licensing choice) in the IPR code, and port the IPR views to use the render shortcut.
...
- Legacy-Id: 8896
2015-01-22 17:38:05 +00:00
Henrik Levkowetz
5183042d58
Merged in branch/amsl/iprtool/5.7.4@8734 from rcross@amsl.com, providing new IPR models, refactored code, and improved list, search, and management interfaces.
...
- Legacy-Id: 8808
2014-12-21 19:26:33 +00:00
Ole Laursen
87870ca954
Fix more test errors - now only two not yet fully ported views remain
...
- Legacy-Id: 8571
2014-11-03 16:39:41 +00:00
Henrik Levkowetz
3ed711336d
Made ietf/ipr pyflakes-clean
...
- Legacy-Id: 7470
2014-03-15 17:54:37 +00:00
Ole Laursen
3db6ae14a9
Add missing test of IPR details page, as found by coverage check
...
- Legacy-Id: 7083
2014-01-08 18:07:43 +00:00
Ole Laursen
26ec475d89
Fix spelling mistake in comments
...
- Legacy-Id: 6781
2013-12-03 18:53:04 +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
Henrik Levkowetz
233aef46d5
Comment out NewIprTestCase as it writes to the production database.
...
- Legacy-Id: 4301
2012-04-22 16:33:44 +00:00
Ole Laursen
ca2168cbce
Fix bug in test
...
- Legacy-Id: 3695
2011-11-24 10:50:34 +00:00
Ole Laursen
ce74be89ef
Use the test mode in the mail code when running automated tests instead of
...
reinventing the wheel in test_runner
- Legacy-Id: 3620
2011-11-15 11:24:33 +00:00