I seem to remeber ther was a way to view the source of a page through the web. I seem to remember something like http://host/page/view_source but none of the variations I have tried works, and I can't find a reference to this feature. Did I just dream the whole thing up? Daniel
it is a method of DTMLMethod/DTMLDocument and is called document_src() rr ----- Original Message ----- From: "Daniel Mahler" <mahler@cyc.com> To: <zope@zope.org> Sent: Wednesday, January 23, 2002 2:39 AM Subject: [Zope] viewing page source
I seem to remeber ther was a way to view the source of a page through the web. I seem to remember something like http://host/page/view_source but none of the variations I have tried works, and I can't find a reference to this feature. Did I just dream the whole thing up?
Daniel
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Tue, Jan 22, 2002 at 07:39:46PM -0600, Daniel Mahler wrote:
I seem to remeber ther was a way to view the source of a page through the web. I seem to remember something like http://host/page/view_source but none of the variations I have tried works, and I can't find a reference to this feature. Did I just dream the whole thing up?
View source of the infamous view_source: http://www.zope.org/view_source/view_source?pp=1 :) Oleg. -- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Oleg Broytmann writes:
View source of the infamous view_source: http://www.zope.org/view_source/view_source?pp=1 :)
Why then does my Zope-2.4.3 give "Resource not found"? Daniel
Oleg. -- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
On Wed, Jan 23, 2002 at 03:28:52AM -0600, Daniel Mahler wrote:
Why then does my Zope-2.4.3 give "Resource not found"?
Because view_source is not included in the Zope distribution (it is security risk to have it automatically enabled). Copy it verbatim from the page I mentioned. And give it 'Manger' proxy role (document_src() call requires Manager's permissions). Oleg. -- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
participants (3)
-
Daniel Mahler -
Oleg Broytmann -
Robert Rottermann