[Zope] Forwarding problem SOLVED
Kevin Carlson
khcarlso@bellsouth.net
Sun, 16 Feb 2003 12:41:58 -0500
Turns out that this was due to the stylesheet being accessed via a
relative path. Once I altered the source to have an absolute path,
everything worked fine.
Kevin
Kevin Carlson wrote:
> I have a dtml-document that displays some information given a database
> key as an argument in the request. I call the document as
> "/document?id=239".
>
> I created a script to receive similar requests: "/docscript/239".
> This way I could get the key from the traverse_subpath, add 'id' to
> the request and forward control on to the original dtml-document.
>
> If I call the document as "/document?id=239" things display properly.
> If I call the script, all the basic content on the resulting page is
> right, but the style sheet and graphics aren't picked up in the
> process. Both the script and the dtml-document are in the same
> folder. The script is below. Any ideas anyone?
>
> request = container.REQUEST
> if len(traverse_subpath) > 0 :
> request.set('id', traverse_subpath[0])
>
> return context['document'](container, request)
>
> Thanks,
>
> Kevin
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>