[Zope] How to get the DTML code from a document/method?

Tony McDonald tony.mcdonald@ncl.ac.uk
Thu, 8 Apr 1999 12:46:12 +0100


><SNIP>
>>
>> (this was from trying /dtml_source?path=index_html but path='anything
>> else' gives the same error).
>
>What about http://server.org/dtml_source?path=/index_html
>The leading slash is significant by virtue of the split in the source.

I appreciate the feedback Rob, but 'there is one small problem...'

I still get the same traceback unfortunately.
<!--
 Error type: 
 Error value: read-only buffer, class
 -->

<!--
Traceback (innermost last):
  File lib/python/ZPublisher/Publish.py, line 877, in publish_module
  File lib/python/ZPublisher/Publish.py, line 590, in publish
    (Info: /dtml_source)
  File lib/python/OFS/DTMLDocument.py, line 212, in __call__
    (Object: dtml_source)
  File lib/python/OFS/DTMLDocument.py, line 208, in __call__
    (Object: dtml_source)
  File lib/python/DocumentTemplate/DT_String.py, line 513, in __call__
    (Object: dtml_source)
  File lib/python/DocumentTemplate/DT_Var.py, line 239, in render
    (Object: view_source(path))
  File lib/python/DocumentTemplate/DT_Util.py, line 266, in eval
    (Object: view_source(path))
  File &lt;string&gt;, line 0, in ?
  File lib/python/Products/ExternalMethod/ExternalMethod.py, line 
254, in __call__
    (Object: CopySource)
    (Info: (('/index_html',), {}, None))
TypeError: (see above)

-->
Ok, what dullard thing am I doing wrong?
------
Dr Tony McDonald,  FMCC, Networked Learning Environments Project
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2