1.1 --- a/XSLForms/Resources/WebResources.py Mon Oct 31 23:55:38 2005 +0000
1.2 +++ b/XSLForms/Resources/WebResources.py Mon Oct 31 23:55:51 2005 +0000
1.3 @@ -197,11 +197,13 @@
1.4 expressions=stylesheet_expressions, references=references)
1.5 return proc.get_result(document)
1.6
1.7 - def prepare_initialiser(self, input_identifier):
1.8 + def prepare_initialiser(self, input_identifier, init_enumerations=1):
1.9
1.10 """
1.11 Prepare an initialiser/input transformation using the given
1.12 - 'input_identifier'.
1.13 + 'input_identifier'. The optional 'init_enumerations' (defaulting to
1.14 + true) may be used to indicate whether enumerations are to be initialised
1.15 + from external documents.
1.16
1.17 Return the full path to the input stylesheet for use with 'send_output'
1.18 or 'get_result'.
1.19 @@ -210,7 +212,7 @@
1.20 template_filename, input_filename = self.init_resources[input_identifier]
1.21 input_path = os.path.abspath(os.path.join(self.resource_dir, input_filename))
1.22 template_path = os.path.abspath(os.path.join(self.resource_dir, template_filename))
1.23 - XSLForms.Prepare.ensure_input_stylesheet(template_path, input_path)
1.24 + XSLForms.Prepare.ensure_input_stylesheet(template_path, input_path, init_enumerations)
1.25 return input_path
1.26
1.27 def prepare_transform(self, transform_identifier):