1.1 --- a/examples/Common/DemoApp.py Sat Mar 04 19:08:07 2006 +0000
1.2 +++ b/examples/Common/DemoApp.py Sat Mar 04 19:08:30 2006 +0000
1.3 @@ -57,6 +57,8 @@
1.4
1.5 "Define the resource mapping."
1.6
1.7 + # Find a file for use with the Dictionary example.
1.8 +
1.9 exec_dir = os.path.split(sys.argv[0])[0]
1.10 parts = os.path.split(exec_dir)
1.11 if parts[-1] == "tools":
1.12 @@ -65,8 +67,15 @@
1.13 doc = os.path.join(*parts)
1.14 dict = Dict(doc)
1.15
1.16 + # Define the site resource itself.
1.17 +
1.18 resource = MapResource({
1.19 - "candidate" : Candidate.get_site(),
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 "configurator" : Configurator.get_site(),
1.27 "dictionary" : Dictionary.get_site(dict),
1.28 "questionnaire" : Questionnaire.get_site(),