It doesn't. But one of the reasons that it doesn't is that a DTML Method can actually impersonate a lot of things, just by having the first line being:
Content-type: application/x-msword
I just tried that on Zope 2.3.1b1 and it doesn't work :-(
That text just gets stuck at the top of the output...
Any ideas?
<dtml-call "REQUEST.set('Content-Type','application/x-msword')"> ? cheers, oliver
On 8/4/01 7:39 pm, "Oliver Bleutgen" <myzope@gmx.net> wrote:
It doesn't. But one of the reasons that it doesn't is that a DTML Method can actually impersonate a lot of things, just by having the first line being:
Content-type: application/x-msword
I just tried that on Zope 2.3.1b1 and it doesn't work :-(
That text just gets stuck at the top of the output...
Any ideas?
<dtml-call "REQUEST.set('Content-Type','application/x-msword')"> ?
cheers, oliver
If you can handle using a DTML document, set a property for the document called 'content_type' to 'application/x-msword' Tone -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope
Tony McDonald wrote:
If you can handle using a DTML document, set a property for the document called 'content_type' to 'application/x-msword'
How can I do something similar using methods? I wonder if the would acquire such a property from their containing object? cheers, Chris
On 9/4/01 1:43 pm, "Chris Withers" <chrisw@nipltd.com> wrote:
Tony McDonald wrote:
If you can handle using a DTML document, set a property for the document called 'content_type' to 'application/x-msword'
How can I do something similar using methods?
I wonder if the would acquire such a property from their containing object?
cheers,
Chris
I *knew* someone was going to ask that! :) I dunno really - I had no need to try it out. Easiest thing to do is suck it and see? <straw grasp="clutching"> Or maybe have a DTML Document (with the property set) that just calls the method? Clunky... </straw> HTH Tone. -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope
participants (3)
-
Chris Withers -
Oliver Bleutgen -
Tony McDonald