1.1 --- a/examples/Common/DemoApp.py Sun Jan 21 00:22:40 2007 +0000
1.2 +++ b/examples/Common/DemoApp.py Sun Jan 21 00:23:27 2007 +0000
1.3 @@ -25,6 +25,13 @@
1.4
1.5 from WebStack.Generic import ContentType
1.6
1.7 +# Configuration settings.
1.8 +# NOTE: Change the filesystem encoding if appropriate.
1.9 +
1.10 +fsencoding = "iso-8859-15"
1.11 +
1.12 +# Resource classes.
1.13 +
1.14 class DemoResource:
1.15 def respond(self, trans):
1.16 trans.set_content_type(ContentType("text/html"))
1.17 @@ -71,11 +78,10 @@
1.18
1.19 resource = MapResource({
1.20
1.21 - # NOTE: Change the filesystem encoding if appropriate.
1.22 # Use the current working directory so that the installed package can still run
1.23 # the demo.
1.24
1.25 - "candidate" : Candidate.get_site("iso-8859-15", use_cwd=1),
1.26 + "candidate" : Candidate.get_site(fsencoding, use_cwd=1),
1.27 "configurator" : Configurator.get_site(),
1.28 "dictionary" : Dictionary.get_site(dict),
1.29 "questionnaire" : Questionnaire.get_site(),