Permalink
Browse files

better deprecation warning

  • Loading branch information...
1 parent 31938b4 commit 8c8b387339d41b03428831c4500e4eafb6cc227d @mcdonc mcdonc committed Oct 12, 2011
Showing with 8 additions and 3 deletions.
  1. +8 −3 pyramid/request.py
View
@@ -128,9 +128,14 @@ def _response_headerlist_del(self):
response_headerlist = property(_response_headerlist_get,
_response_headerlist_set,
_response_headerlist_del)
- response_headerlist = deprecated(
- response_headerlist,
- rr_dep % ('headerlist', 'headerlist'))
+
+ hl_dep = ('Accessing and setting "request.response_headerlist" is '
+ 'deprecated as of Pyramid 1.1; access the headerlist via '
+ '"request.response.headerlist" and extend headers via '
+ '"request.response.headerlist.extend(alist)" instead of '
+ '"request.response_headerlist = alist"')
+
+ response_headerlist = deprecated(response_headerlist, hl_dep)
# response_status
def _response_status_get(self):

0 comments on commit 8c8b387

Please sign in to comment.