1.1 --- a/XSLForms/Resources.py Sun Oct 02 15:47:25 2005 +0000
1.2 +++ b/XSLForms/Resources.py Mon Oct 03 00:47:45 2005 +0000
1.3 @@ -151,6 +151,11 @@
1.4 'references' to external documents.
1.5 """
1.6
1.7 + # Sanity check for the filenames list.
1.8 +
1.9 + if isinstance(stylesheet_filenames, str) or isinstance(stylesheet_filenames, unicode):
1.10 + raise ValueError, stylesheet_filenames
1.11 +
1.12 proc = XSLOutput.Processor(stylesheet_filenames, parameters=stylesheet_parameters, references=references)
1.13 proc.send_output(trans.get_response_stream(), trans.get_response_stream_encoding(),
1.14 document)
1.15 @@ -165,6 +170,11 @@
1.16 external documents.
1.17 """
1.18
1.19 + # Sanity check for the filenames list.
1.20 +
1.21 + if isinstance(stylesheet_filenames, str) or isinstance(stylesheet_filenames, unicode):
1.22 + raise ValueError, stylesheet_filenames
1.23 +
1.24 proc = XSLOutput.Processor(stylesheet_filenames, parameters=stylesheet_parameters, references=references)
1.25 return proc.get_result(document)
1.26