247 |
# found! negotiate output encodings now |
# found! negotiate output encodings now |
248 |
if hasattr(context, 'pt_output_encoding'): |
if hasattr(context, 'pt_output_encoding'): |
249 |
# OpenPT |
# OpenPT |
250 |
if catalog.preferred_encodings: |
encodings = catalog._info.get('preferred-encodings', '').split() |
251 |
context.pt_output_encoding.restrict(catalog, catalog.preferred_encodings) |
if encodings: |
252 |
|
context.pt_output_encoding.restrict(catalog, encodings) |
253 |
else: |
else: |
254 |
# ZPT probably |
# ZPT probably |
255 |
# ask HTTPResponse to encode it for us |
# ask HTTPResponse to encode it for us |