Henrik Levkowetz
3a76e4a935
Added an API endpoint for bluesheet information upload. Factored out code in common with manual upload_session_bluesheets(). Tweaked ietf.secr.proceedings.utils.handle_upload_file() to handle temp files in addition to http file objects, to support the API endpoint.
...
- Legacy-Id: 18067
2020-06-26 14:49:13 +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
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
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