1.1 --- a/XSLForms/Resources/WebResources.py Wed Oct 26 00:07:09 2005 +0000
1.2 +++ b/XSLForms/Resources/WebResources.py Wed Oct 26 00:37:36 2005 +0000
1.3 @@ -24,10 +24,11 @@
1.4 import XSLForms.Fields
1.5 import XSLForms.Prepare
1.6 import XSLForms.Output
1.7 +import XSLForms.Resources.Common
1.8 from XSLTools import XSLOutput
1.9 import os
1.10
1.11 -class XSLFormsResource:
1.12 +class XSLFormsResource(XSLForms.Resources.Common.CommonResource):
1.13
1.14 """
1.15 A generic XSLForms resource for use with WebStack.
1.16 @@ -80,9 +81,8 @@
1.17 encoding = "utf-8"
1.18 template_resources = {}
1.19 in_page_resources = {}
1.20 + init_resources = {}
1.21 transform_resources = {}
1.22 - document_resources = {}
1.23 - resource_dir = None
1.24
1.25 def clean_parameters(self, parameters):
1.26
1.27 @@ -228,18 +228,6 @@
1.28 paths.append(os.path.abspath(os.path.join(self.resource_dir, filename)))
1.29 return paths
1.30
1.31 - def prepare_document(self, document_identifier):
1.32 -
1.33 - """
1.34 - Prepare a document using the given 'document_identifier'.
1.35 -
1.36 - Return the full path of the document for use either as the source
1.37 - document or as a reference with 'send_output' or 'get_result'.
1.38 - """
1.39 -
1.40 - filename = self.document_resources[document_identifier]
1.41 - return os.path.abspath(os.path.join(self.resource_dir, filename))
1.42 -
1.43 def get_in_page_resource(self, trans):
1.44
1.45 """