/[opental]/opental/PlacelessTranslationService/PlacelessTranslationService.py
ViewVC logotype

Diff of /opental/PlacelessTranslationService/PlacelessTranslationService.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31 by lalo, Mon Oct 6 21:34:38 2003 UTC revision 1.32 by lalo, Mon Oct 6 21:51:09 2003 UTC
# Line 247  class PlacelessTranslationService(Folder Line 247  class PlacelessTranslationService(Folder
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

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26