XSLTools

Change of examples/Common/VerySimple/__init__.py

499:d87af38a27c5
examples/Common/VerySimple/__init__.py
     1.1 --- a/examples/Common/VerySimple/__init__.py	Mon Jan 30 22:09:27 2006 +0000
     1.2 +++ b/examples/Common/VerySimple/__init__.py	Mon Jan 30 22:10:12 2006 +0000
     1.3 @@ -94,7 +94,10 @@
     1.4  
     1.5          # Complete the response.
     1.6  
     1.7 -        stylesheet_parameters["locale"] = trans.get_content_languages()[0]
     1.8 +        try:
     1.9 +            stylesheet_parameters["locale"] = trans.get_content_languages()[0]
    1.10 +        except IndexError:
    1.11 +            pass
    1.12          self.send_output(trans, [trans_xsl], structure, stylesheet_parameters,
    1.13              references={"translations" : self.prepare_document("translations")})
    1.14