I'm developing a Python-based product that needs to serve up a variety of
XML files out of the product's directory. That is, certain URLs handled by
instances of a product-defined type need to return an XML file that's on
disk along with the product's DTML views and the like. Let's say that the


resolves to an object my product class defines. Then I'd like


to serve a file named 'a' in a directory named 'xml_files' in my product's
directory. Similarly,


should serve a file named 'c' within a directory named 'b' within
'xml_files' in my product's directory.

I'd rather not hard-code every single file in the Python module, since there
will be many, and they'll be changing a lot during development.

I've been messing around with DTMLFile and ClassicHTMLFile and the like,
haven't been able to figure out how to get it to work for arbitrary paths.
They also require all my file names end in '.dtml', which is quite a pain.

Any suggestions?



-- --- -- --- -- --- -- --- -- --- -- --- -- --- -- --- -- --- --
Dr. Ian Beatty                           [EMAIL PROTECTED]
Physics Education Research Group              voice: 413.545.9483
Department of Physics                           fax: 413.545.4884
Univ. of Massachusetts              AIM: (available upon request)
Amherst, MA 01003-4525 USA
-- --- -- --- -- --- -- --- -- --- -- --- -- --- -- --- -- --- --

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to