Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #16501 -- Added an allow_unicode parameter to ↵ | Edward Henderson | 2015-07-17 | 1 | -4/+8 |
| | | | | | | SlugField. Thanks Flavio Curella and Berker Peksag for the initial patch. | ||||
* | Sorted imports with isort; refs #23860. | Tim Graham | 2015-02-06 | 1 | -4/+4 |
| | |||||
* | Fixed #24242 -- Improved efficiency of ↵ | Matthew Somerville | 2015-02-04 | 1 | -2/+5 |
| | | | | | | | | | | | utils.text.compress_sequence() The function no longer flushes zfile after each write as doing so can lead to the gzipped streamed content being larger than the original content; each flush adds a 5/6 byte type 0 block. Removing this means buf.read() may return nothing, so only yield if that has some data. Testing shows without the flush() the buffer is being flushed every 17k or so and compresses the same as if it had been done as a whole string. | ||||
* | Removed utils.text.javascript_quote() per deprecation ↵ | Tim Graham | 2015-01-17 | 1 | -29/+0 |
| | | | | timeline; refs #21725. | ||||
* | Fixed #23558 -- documented slugify limitations | David Hoffman | 2014-10-30 | 1 | -3/+3 |
| | |||||
* | Fixed #20221 -- Allowed some functions that use ↵ | Jon Dufresne | 2014-10-20 | 1 | -2/+3 |
| | | | | | | mark_safe() to result in SafeText. Thanks Baptiste Mispelon for the report. | ||||
* | Fixed #6668 -- Optimized utils.text wrap function | Markus Amalthea Magnuson | 2014-05-17 | 1 | -20/+23 |
| | | | | | This fixes a failing test after applying an optimization of the utils.text.wrap function by user SmileyChris. | ||||
* | Fixed #21188 -- Introduced subclasses for ↵ | Claude Paroz | 2014-03-08 | 1 | -1/+2 |
| | | | | | | | to-be-removed-in-django-XX warnings Thanks Anssi Kääriäinen for the idea and Simon Charette for the review. | ||||
* | Deprecated django.utils.text.javascript_quote. | Baptiste Mispelon | 2014-02-22 | 1 | -0/+6 |
| | | | | Refs #21725. | ||||
* | Fixed #21725 -- Fixed JavaScript quoting encoding. | MattBlack85 | 2014-02-15 | 1 | -1/+1 |
| | | | | Thanks to nedbatchelder for the report. | ||||
* | Fixed #19496 -- Added truncatechars_html filter. | Jeremy | 2014-02-13 | 1 | -20/+33 |
| | | | | | Thanks esevece for the suggestion and Nick Sandford and Martin Warne for the inital work on the patch. | ||||
* | Fixed #21731 -- Made javascript_quote escapes '</'. | Vajrasky Kok | 2014-02-06 | 1 | -0/+1 |
| | |||||
* | Removed a few gratuitous lambdas. | Aymeric Augustin | 2013-12-26 | 1 | -0/+10 |
| | |||||
* | Fixed #21651 -- Remove recapitalize. | Marc Tamlyn | 2013-12-22 | 1 | -9/+0 |
| | | | | | | | It was not used inside Django, is not tested or documented. Consequently remove without deprecation path. Thanks to @vajrasky for bringing it to our attention. | ||||
* | Fixed #21574 -- Handle bytes consistently in ↵ | Baptiste Mispelon | 2013-12-12 | 1 | -1/+3 |
| | | | | | | | | | | | utils.text.normalize_newlines. All input is now coerced to text before being normalized. This changes nothing under Python 2 but it allows bytes to be passed to the function without a TypeError under Python3 (bytes are assumed to be utf-8 encoded text). Thanks to trac user vajrasky for the report. | ||||
* | Fixed PEP257 violations (single-quoted docstrings) in ↵ | Baptiste Mispelon | 2013-12-12 | 1 | -2/+2 |
| | | | | utils.text. | ||||
* | Fixed E124 pep8 warnings. | Loic Bistuer | 2013-12-10 | 1 | -2/+1 |
| | |||||
* | Fixed #21573 -- Improved performance of ↵ | Vajrasky Kok | 2013-12-07 | 1 | -1/+2 |
| | | | | utils.text.normalize_newlines. | ||||
* | Correct flake8 E302 violations | Ray Ashman Jr | 2013-11-03 | 1 | -0/+14 |
| | |||||
* | Fixed #21302 -- Fixed unused imports and import *. | Tim Graham | 2013-11-02 | 1 | -1/+1 |
| | |||||
* | Fixed #21298 -- Fixed E301 pep8 warnings | Alasdair Nicol | 2013-10-23 | 1 | -0/+1 |
| | |||||
* | Fixed E227 pep8 warnings | Tim Graham | 2013-10-21 | 1 | -1/+1 |
| | |||||
* | Fixed #21270 -- Fixed E701 pep8 warnings | Alasdair Nicol | 2013-10-17 | 1 | -2/+4 |
| | |||||
* | Fixed #20568 -- truncatewords_html no longer splits ↵ | Jaap Roes | 2013-10-08 | 1 | -1/+1 |
| | | | | | | words containing HTML entities. Thanks yann0 at hotmail.com for the report. | ||||
* | Fix #21185: Added tests for unescape_entities. | Baptiste Mispelon | 2013-09-27 | 1 | -2/+2 |
| | | | | | Also fixed a py3 incompatibility. Thanks to brutasse for the report. | ||||
* | Replaced "not PY3" by "PY2", new in six 1.4.0. | Aymeric Augustin | 2013-09-02 | 1 | -1/+1 |
| | |||||
* | Fixed #20989 -- Removed useless explicit list ↵ | Simon Charette | 2013-08-30 | 1 | -1/+1 |
| | | | | comprehensions. | ||||
* | Removed several unused imports. | Aymeric Augustin | 2013-06-19 | 1 | -1/+0 |
| | |||||
* | Fixed #20231 -- Don't use allow_lazy on smart_split | Baptiste Mispelon | 2013-04-10 | 1 | -1/+0 |
| | |||||
* | Fixed #19693 -- Made truncatewords_html handle ↵ | Claude Paroz | 2013-02-13 | 1 | -1/+1 |
| | | | | | | self-closing tags Thanks sneawo for the report and Jonathan Loy for the patch. | ||||
* | Removed truncate_words and truncate_html_words. | Aymeric Augustin | 2012-12-29 | 1 | -14/+0 |
| | |||||
* | Fixed #7581 -- Added streaming responses. | Aymeric Augustin | 2012-10-20 | 1 | -0/+31 |
| | | | | Thanks mrmachine and everyone else involved on this long-standing ticket. | ||||
* | Reordered imports | Aymeric Augustin | 2012-08-23 | 1 | -4/+5 |
| | | | | to avoid an error introduced in 5301a9d7b1. | ||||
* | [py3] Removed duplicate imports. | Aymeric Augustin | 2012-08-23 | 1 | -2/+1 |
| | | | | Fixed #18837. Refs #18791. | ||||
* | [py3] Made 212b9826bd Python 3-friendly | Aymeric Augustin | 2012-08-18 | 1 | -3/+3 |
| | |||||
* | Fixed #14516 -- Extract methods from removetags and ↵ | Marc Tamlyn | 2012-08-18 | 1 | -0/+12 |
| | | | | | | | | | | slugify template filters Patch by @jphalip updated to apply, documentation and release notes added. I've documented strip_tags as well as remove_tags as the difference between the two wouldn't be immediately obvious. | ||||
* | Fix changes introduced in fd04e7 so they don't break on ↵ | Ramiro Morales | 2012-08-16 | 1 | -3/+6 |
| | | | | Python 3. | ||||
* | Added import of force_unicode to utils/text.py | Adrian Holovaty | 2012-08-15 | 1 | -1/+3 |
| | | | | For backwards compatibility with stupid people like me. Refs #18772. | ||||
* | [py3] Fixed admin_views tests | Claude Paroz | 2012-08-14 | 1 | -1/+1 |
| | | | | Also changed several occurrences of 'request' to 'response'. | ||||
* | [py3] Ported django.utils.encoding. | Aymeric Augustin | 2012-08-07 | 1 | -12/+12 |
| | | | | | | | | | | | * Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str. | ||||
* | [py3] Switched to Python 3-compatible imports. | Aymeric Augustin | 2012-07-22 | 1 | -2/+2 |
| | | | | | xrange/range will be dealt with in a separate commit due to the huge number of changes. | ||||
* | [py3] Replaced unicode/str by six.text_type/bytes. | Aymeric Augustin | 2012-07-22 | 1 | -12/+13 |
| | |||||
* | Fixed #18269 -- Applied unicode_literals for Python 3 ↵ | Claude Paroz | 2012-06-07 | 1 | -22/+24 |
| | | | | | | | compatibility. Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review. | ||||
* | Replaced foo.next() by next(foo). | Claude Paroz | 2012-05-10 | 1 | -1/+1 |
| | | | | | This new syntax for next() has been introduced in Python 2.6 and is compatible with Python 3. | ||||
* | Replaced cStringIO.StringIO by io.BytesIO. | Claude Paroz | 2012-05-05 | 1 | -6/+2 |
| | | | | | Also replaced StringIO.StringIO by BytesIO in some other appropriate places. StringIO is not available in Python 3. | ||||
* | Fixed #18042 -- Advanced deprecation warnings. | Aymeric Augustin | 2012-05-03 | 1 | -2/+2 |
| | | | | Thanks Ramiro for the patch. | ||||
* | Whitespace formatting | Not Carl | 2012-04-28 | 1 | -1/+1 |
| | |||||
* | forgot the allow_lazy(phone2numeric) | Not Carl | 2012-04-28 | 1 | -0/+1 |
| | |||||
* | Modified phone2numeric to not use regular expression or ↵ | Not Carl | 2012-04-28 | 1 | -8/+6 |
| | | | | lambdas | ||||
* | Fixed #10931 -- Made `Truncator` handle newlines ↵ | Julien Phalip | 2012-01-02 | 1 | -2/+2 |
| | | | | | | properly. Thanks to gsong and Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17329 bcc190cf-cafb-0310-a4f2-bffc1f526a37 |