summaryrefslogtreecommitdiff
path: root/webob
Commit message (Collapse)AuthorAgeFilesLines
* dont try to decode remote_userChris McDonough2012-01-281-3/+1
|
* give up on trying to encode header values when request.headers is usedChris McDonough2012-01-282-11/+14
|
* more spurious diff removalChris McDonough2012-01-281-8/+8
|
* add change notes, reduce spurious diffsChris McDonough2012-01-281-30/+28
|
* set deprecated properties on BaseRequest rather than LegacyRequest, use ↵Chris McDonough2012-01-282-13/+16
| | | | environ_getter for presumed-ascii-only settings
* bytesrequest renamed to legacyrequest... it no longer eagerly converts to ↵Chris McDonough2012-01-283-132/+87
| | | | bytes, it just presents the older native string api expected by existing systems. textrequest renamed to baserequest, it is the new default request type.. it no longer eagerly converts to text, either unless an encattr is named on the environ_decoder
* test textrequest and bytesrequest independentlyChris McDonough2012-01-282-11/+12
|
* use latin-1 as the default decoder/encoderChris McDonough2012-01-261-2/+2
|
* use environ[REQUEST_METHOD] rather than req.method in case we decide to ↵Chris McDonough2012-01-261-5/+6
| | | | leave it bytes
* make upath_property take into account url encodingChris McDonough2012-01-261-5/+9
|
* get rid of useless literalsChris McDonough2012-01-261-13/+5
|
* make charset a native string, make _content_type_raw an environ getter ↵Chris McDonough2012-01-261-13/+11
| | | | rather than environ decoder
* turn remote_user_encoding and url_encoding into environ_getters (adding ↵Chris McDonough2012-01-262-15/+19
| | | | webob.remote_user_encoding and webob.url_encoding vars to environ), fix _request_uri for Python 3, improve _abs_headerlist, dont decode scheme when looking up
* fix EnvironHeaders class to do encoding and decoding properlyChris McDonough2012-01-262-14/+11
|
* unused imports, long lineChris McDonough2012-01-263-5/+2
|
* remove missing NoIfRange from __all__Chris McDonough2012-01-261-2/+1
|
* make bytesrequest work on python 3Chris McDonough2012-01-261-58/+98
|
* move environ_decoder descriptor next to environ_getterChris McDonough2012-01-251-28/+31
|
* First cut at distinct TextRequest/BytesRequest implementations as aChris McDonough2012-01-252-87/+179
| | | | | | | | | | | | | | | | | | | | fix for issue #21. TextRequest is the default when Request or BaseRequest is imported under Python 3 for backwards compatibility. The only difference Python 3 users should see after upgrading to this: script_name and path_info will be decoded, and methods which erroneously dealt in raw environ values will now deal correctly in text. BytesRequest is the default when Request or BaseRequest is imported under Python 2 for backwards compatibility. It works just like the old BaseRequest under Python 2. Under Python 2, environ values are still dealt with as bytes by all methods. Under Python 3, it coerces all environ values to bytes. It's doubtful anyone will use this under Python 3. Either BytesRequest or TextRequest are usable directly under Python 2 or Python 3, but the intent is to transition people over time to TextRequest on both. Certainly new frameworks could start off using TextRequest.
* fix status_int/status bug on py3 (use explicit floor division), add coverageChris McDonough2012-01-081-2/+2
|
* add warning to docstring of client_addr (closes #20)Chris McDonough2012-01-061-0/+10
|
* __all__ definition duplicate removedPiotr Husiatyński2012-01-011-2/+0
|
* fix https://github.com/Pylons/webob/issues/18 (non-ascii form POST, then ↵Sergey Schetinin2011-12-262-5/+9
| | | | parse, then serialize)
* Improving compliance with RFC2616 re HTTP status codes - now an application canMichael Stella2011-12-062-3/+19
| | | | | provide an arbitrary code, and a generic message (based on the x00 code in the same class) will be generated, rather than raising KeyError.
* * Added ``request.client_addr`` API (returns IP address implied byChris McDonough2011-10-281-0/+20
| | | | HTTP_X_FORWARDED_FOR, falling back to REMOTE_ADDR).
* * Added ``request.host_port`` API (returns port number implied by HTTP_HOST,Chris McDonough2011-10-281-0/+27
| | | | falling back to SERVER_PORT).
* Fix NilAccept.best_match() so an empty "offers" + default_match picks defaultChristopher Allan Webber2011-10-181-1/+1
| | | | | | | Prior to this, NilAccept.best_match([], default_match="default") threw: UnboundLocalError: local variable 'best_offer' referenced before assignment Also added a relevant test.
* 1.2b21.2b2Sergey Schetinin2011-10-151-1/+1
|
* * Fix ``request.cookies.get('name', 'default')``. Previously ``default`` wasChris McDonough2011-10-151-1/+1
| | | | ignored.
* version 1.2b11.2b1Sergey Schetinin2011-10-151-1/+1
|
* gardenfeature.pylons10compatChris McDonough2011-10-131-1/+4
|
* be less aggressive about feature removal for benefit of pylons 1.XChris McDonough2011-10-132-13/+30
|
* * Mutating the ``request.cookies`` property now reflects the mutations intofeature.cookie-bug-for-bugChris McDonough2011-10-102-11/+142
| | | | the ``HTTP_COOKIES`` environ header.
* Merge branch 'master' into feature.cookie-bug-for-bugChris McDonough2011-10-081-4/+11
|\
| * typoChris McDonough2011-10-081-1/+1
| |
| * improve deprecation warningsChris McDonough2011-10-081-4/+11
| |
* | Merge branch 'master' into feature.cookie-bug-for-bugChris McDonough2011-10-072-20/+9
|\ \ | |/
| * * Undeprecated ``uscript_name`` and ``upath_info``.Chris McDonough2011-10-061-14/+7
| | | | | | | | | | | | | | * For backwards compatibility purposes, switch ``req.script_name`` and ``path_info`` back again to contain "raw" undecoded native strings rather than text. Use ``uscript_name`` and ``upath_info`` to get the text version of SCRIPT_NAME and PATH_INFO.
| * * ``Response.request`` and ``Response.environ`` attrs are undeprecated and noChris McDonough2011-10-061-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | longer raise exceptions when used. These can also be passed to the Response constructor. This is to support codebases that pass them to the constructor or assign them to a response instance. However, some behavior differences from 1.1 exist. In particular, synchronization is no longer done between environ and request attribute properties of Response; you may pass either to the constructor (or both) or assign one or the other or both, but they wont be managed specially and will remain the same over the lifetime of the response just as you passed them. Default values for both ``request`` and ``environ`` on any given response are ``None`` now.
| * get docstring descriptions right for cookies and paramsChris McDonough2011-10-061-2/+3
| |
* | * Mutating the ``request.cookies`` property now retains the mutated valueChris McDonough2011-10-062-16/+11
|/ | | | | during the course of a single request (bug-for-bug compatibility with previous versions; in-the-wild codebases depend upon this behavior).
* Merge branch 'master' of github.com:Pylons/webobChris McDonough2011-10-062-3/+6
|\
| * fix str(Response()) w/o charset, but only on py2Sergey Schetinin2011-10-021-2/+1
| |
| * add req.json_body (adapted from Pyramid)Sergey Schetinin2011-09-301-1/+5
| |
* | * Fix deprecation error messages for ``response.request`` andChris McDonough2011-10-061-2/+2
|/ | | | | ``response.environ`` (they previously showed ``None`` as the attribute name when displayed).
* forgot the TypeError messageSergey Schetinin2011-09-301-1/+1
|
* merge all methods overridden in ImmutableDict into oneSergey Schetinin2011-09-301-23/+6
|
* * ``request.cookies`` property now returns an immutable dictionary;Chris McDonough2011-09-292-2/+30
| | | | attempting to modify it will result in a TypeError.
* unused importChris McDonough2011-09-291-1/+0
|
* remove Accept.best_matches(), add Accept.__iter__()Sergey Schetinin2011-09-261-31/+11
|