1.1 --- a/examples/Common/VerySimple/__init__.py Sat Mar 04 18:53:12 2006 +0000
1.2 +++ b/examples/Common/VerySimple/__init__.py Sat Mar 04 18:53:32 2006 +0000
1.3 @@ -39,7 +39,7 @@
1.4 "translations" : "translations.xml"
1.5 }
1.6 in_page_resources = {
1.7 - "comments" : ("structure_output_comments.xsl", "comment-node")
1.8 + "comments" : ("structure", "structure_output_comments.xsl", "comment-node")
1.9 }
1.10
1.11 def respond_to_form(self, trans, form):
1.12 @@ -86,7 +86,7 @@
1.13 # Ensure that an output stylesheet exists.
1.14
1.15 if in_page_resource in self.in_page_resources.keys():
1.16 - trans_xsl = self.prepare_fragment("structure", in_page_resource)
1.17 + trans_xsl = self.prepare_fragment(in_page_resource)
1.18 stylesheet_parameters = self.prepare_parameters(parameters)
1.19 else:
1.20 trans_xsl = self.prepare_output("structure")
1.21 @@ -123,4 +123,10 @@
1.22
1.23 return resource
1.24
1.25 +# Resource preparation ahead of time - useful for making installations.
1.26 +
1.27 +def prepare_resources():
1.28 + for cls in [VerySimpleResource]:
1.29 + XSLForms.Resources.WebResources.prepare_resources(cls)
1.30 +
1.31 # vim: tabstop=4 expandtab shiftwidth=4