Henrik Levkowetz
915d8e3c2a
Added LookupError to the exceptions caught during text upload decoding, leading to upload form validation error.
...
- Legacy-Id: 16573
2019-07-22 15:47:40 +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
1225f8af6b
Refactored submission code to be clearer and only do mimetype extraction in one place, made the point where files are saved less obscure, fixed bytes/str issues for file read and write, fixed regex strings, fixed variable name visibility due to scope changes in py3.
...
- Legacy-Id: 16375
2019-07-04 15:49:42 +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
d300a82845
Added validation of draft names extracted from XML submission files.
...
- Legacy-Id: 16239
2019-06-12 22:06:53 +00:00
Henrik Levkowetz
175c75cfaf
Removed a debug print statement
...
- Legacy-Id: 16111
2019-03-28 10:11:33 +00:00
Henrik Levkowetz
2f31f7fb88
Temorary workaround to upload xml validation. The tree.validate() of xml2rfc should be updated to check vocabulary version and validate against the appropriate schema, to fix this properly.
...
- Legacy-Id: 16101
2019-03-25 10:56:30 +00:00
Henrik Levkowetz
07fa09b6dc
Removed a debug print statement
...
- Legacy-Id: 15963
2019-02-25 12:30:52 +00:00
Henrik Levkowetz
e8a59ce1e5
Rewrote the submission deduce_group() to consider all groups with acronyms that are also GroupTypeNames. Added GroupTypeName for iesg,ise,adhoc groups, and appropriate GroupFeatures for each. Updated the names.json fixture.
...
- Legacy-Id: 15960
2019-02-21 15:27:58 +00:00
Henrik Levkowetz
fc5dd02c27
Fixed a submission failure for xml files missing abstract sections.
...
- Legacy-Id: 15933
2019-02-07 15:26:26 +00:00
Henrik Levkowetz
57a4c9f41f
Added 9 new group features, and changed list-like char fields to json fields, to get better support for using the values as lists. Modified code to use the group features instead of explicit lists of group types in many places in the code.
...
- Legacy-Id: 15908
2019-01-22 18:11:46 +00:00
Henrik Levkowetz
c14b02cfa4
Fixed a problem where an exception could be raised when reporting an exception during draft XML processing to the user.
...
- Legacy-Id: 15491
2018-09-27 13:36:25 +00:00
Henrik Levkowetz
dab5b81ae2
Fixed display of xml2rfc exceptions when processing draft submission in xml form.
...
- Legacy-Id: 15371
2018-07-17 14:23:18 +00:00
Henrik Levkowetz
00a97a47fe
Changed an exception handling to not depend on exceptions having a .msg element
...
- Legacy-Id: 14687
2018-02-23 14:48:18 +00:00
Henrik Levkowetz
8a9dcfc856
Call the xml2rfc parser with normalize=True, in alignment with xml2rfc internal use.
...
- Legacy-Id: 14686
2018-02-23 13:46:28 +00:00
Henrik Levkowetz
3af2554b2f
Added an API for draft submission, at /api/submit. Added an urls.py file under api/ to hold api urls, and moved those from ietf/urls.py. Refactored out many parts of the regular submission forms and functions in submit/forms.py and submit/views.py in order to re-use the appropriate parts for the submission API. Moved support functions to submit/utils.py. Added a new validation errors for missing docName in xml-based submissions. Updated the submission test document templates to use insert additional values. Added failure and success test cases for automated API submissions, and refactored some test utility functions.
...
- Legacy-Id: 14125
2017-09-16 09:35:42 +00:00
Henrik Levkowetz
a9b259ef26
Changed the message shown when xml file parsing fails during draft submission to include the actual error message from the xml parser. Fixes issue #2353 .
...
- Legacy-Id: 14102
2017-09-06 17:41:29 +00:00
Henrik Levkowetz
274548f1b1
Check the whole draft submission text when checking mime type, and catch decoding errors and raise ValidationError when converting submission form txt file to unicode for Draft().
...
- Legacy-Id: 13759
2017-07-02 21:32:44 +00:00
Henrik Levkowetz
508bf15c6c
Work around an issue in xml2rfc
...
- Legacy-Id: 13682
2017-06-19 19:02:42 +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
df2d0571c4
Narrowed a too wide try/except region in order to give more correct error messages. Changed the the strip() application to happen only on extracted author elements that actually have content. Fixes an inability to upload xml-only drafts with missing author country information.
...
- Legacy-Id: 13574
2017-06-09 20:12:44 +00:00
Henrik Levkowetz
a28940fc1e
Name/email formatting tweaks, to complement [13536].
...
- Legacy-Id: 13540
Note: SVN reference [13536] has been migrated to Git commit 55d36e284d
2017-06-06 08:11:31 +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
Henrik Levkowetz
4afe0b8830
Added stripping of leading and trailing whitespace from submission data (including email addresses) gleaned from submitted xml. Changed email line parsing to use email.utils.parseaddr() instead of a regex which only would handle unwuoted names (and possibly not utf-8 names) correctly.
...
- Legacy-Id: 13423
2017-05-25 14:10:42 +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
Lars Eggert
8a70e9773d
Fix various "RemovedInDjango20Warning" warnings. Commit ready for merge.
...
- Legacy-Id: 13112
2017-03-25 19:16:45 +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
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
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
Ole Laursen
76bcab6efc
Show formal languages used on new submissions and make the field
...
editable, also add it to the test with a simple JSON example
- Legacy-Id: 12662
2017-01-17 13:52:16 +00:00
Henrik Levkowetz
9c9b15bec8
Added guards against picking up non-ascii title and abstract from drafts submitted in xml form.
...
- Legacy-Id: 12429
2016-11-30 15:56:22 +00:00
Henrik Levkowetz
7a8c067d83
Changed a state name, and renamed some view functions for easier code reading. Removed extra name= parameters from the submit/ urlpatterns.
...
- Legacy-Id: 11917
2016-09-01 09:14:34 +00:00
Mike Douglass
fa3a34389e
Merge forward to 6.31.1.dev0
...
- Legacy-Id: 11899
2016-08-31 03:00:10 +00:00
Henrik Levkowetz
289d9ebef6
Moved some path checks from SubmissionUploadForm to the ietf/checks.py.
...
- Legacy-Id: 10753
2016-01-28 16:09:44 +00:00
Henrik Levkowetz
35f4aeafd8
Tweaked the error message for 2 submission form validation errors.
...
- Legacy-Id: 10128
2015-10-02 14:58:03 +00:00
Henrik Levkowetz
58e116cc0a
Made some submission form validation errors apply to all uploads, not only to .txt uploads. Tweaked som validation error wordings.
...
- Legacy-Id: 10076
2015-09-10 08:39:56 +00:00
Henrik Levkowetz
6c253ee48b
Improved the verification of submitted file extensions and mimetype.
...
- Legacy-Id: 9986
2015-08-07 12:10:26 +00:00
Henrik Levkowetz
faecc697be
Changed the code for meta-data extraction from xml files to not break if a sought-after element is missing.
...
- Legacy-Id: 9922
2015-07-30 18:23:56 +00:00
Henrik Levkowetz
cdb0d24aed
Improved the error reporting for invalid xml file submissions.
...
- Legacy-Id: 9916
2015-07-30 11:44:54 +00:00
Henrik Levkowetz
ea26114076
Merged in [9875] from rjsparks@nostrum.com:
...
Improve the form validation for the submission replaces form.
- Legacy-Id: 9877
Note: SVN reference [9875] has been migrated to Git commit 766270a344
2015-07-25 15:29:30 +00:00
Robert Sparks
766270a344
Improve the form validation for the submission replaces form. Commit ready for merge.
...
- Legacy-Id: 9875
2015-07-23 14:24:59 +00:00
Henrik Levkowetz
da893dad1c
Merged in support of xml-source only drafts submissions from personal/henrik/submitxml/.
...
- Legacy-Id: 9859
2015-07-22 21:53:23 +00:00
Henrik Levkowetz
d5f36911cf
Added support of xml-source only drafts submissions.
...
- Legacy-Id: 9858
2015-07-22 21:35:44 +00:00
Henrik Levkowetz
953d639ae3
Merged in Ole's submit-time draft replacement information work, as tested and updated by Robert and Adam.
...
- Legacy-Id: 9829
2015-07-20 14:53:20 +00:00
Ryan Cross
007d7d22b4
Allow Secretariat to submit drafts during blackout period. Fixes #1755 . Commit ready for merge.
...
- Legacy-Id: 9821
2015-07-20 09:56:19 +00:00
Robert Sparks
02a9da52a1
Manually moved the concepts forward. Reworked some presentation. Working enough to bring testers in at Sprint93
...
- Legacy-Id: 9717
2015-07-13 21:09:39 +00:00
Henrik Levkowetz
625347cd2f
Merged trunk@9354 to facelift copy
...
- Legacy-Id: 9357
2015-04-02 06:51:34 +00:00
Henrik Levkowetz
acff585098
Added submission tool cutoff text and logic for the case when there is only one cutoff date (in other words, the -00 and -01 cutoffs are the same).
...
- Legacy-Id: 9130
2015-02-25 20:54:39 +00:00
Henrik Levkowetz
298adf3e20
Added 4 new fields to the meeting class, to hold draft submission cutoff information for the meeting. On request, changed the presentation of the cutoff times to show the last submission time, rather than the beginning of the cutoff time. Changed the cutoff hour format to support full timedelta information, not just a given hour (this was necessary in order to be able to set the requested 23:59:59 submission stop time).
...
- Legacy-Id: 9107
2015-02-21 20:48:29 +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