[Zope] Re[2]: [Zope] view DTML source

Anders Eriksson Anders Eriksson <ame@swipnet.se>
Sat, 25 Nov 2000 02:08:24 +0100


Hello Dieter,

Friday, November 24, 2000, 10:06:22 PM, you wrote:

DM> Anders Eriksson writes:
DM>  > ... view source traceback ...
DM>  >     (Object: standard_html_header)
DM>  > AttributeError: __call__
DM> That is very strange as "standard_html_header" does have
DM> a "__call__" method.
DM> Thus, I can not tell you, why you see this behaviour.

Maybe I have something wrong in my standard_html_header? It's kind of
complex (.I have copied it.) I will remove it and try again.

DM> However, you may use "document_src" directly in the
DM> URL. I.e. you do not need a special DTML method 'view_source".
DM> Try something like this:
DM>     http:..../index_html/document_src
DM> I know, it would be nicer to use "view_source" but ....

AFAIU there is two problems with using document_src directly
1) I can't use the html_quote param
2) Anonymously users can't use this on 'standard' Zope. I tried on
zope.org but it want me to log in. Using view_source I don't need to
do this.

This can of cause be me misunderstanding ;-)

Thanks for your reply!
-- 
Best regards,
 Anders                            mailto:ame@swipnet.se