[Kss-devel] How is the KSS context determined?
Martin Aspeli
optilude at gmx.net
Mon Dec 24 11:27:10 CET 2007
Balazs Ree wrote:
> Hi Martin,
>
> On Mon, 24 Dec 2007 02:19:48 +0100, Martin Aspeli wrote:
>
>> Balazs Ree wrote:
>>> I hope this helps something, please contact me when you want about this
>>> issue, I'd try to look at it deeper as well. We may need to improve
>>> this algorithm to cover the case you are using.
>> That's actually relatively straightforward. The problem is that the
>> <base /> tag in Plone is rendered with a call to context/absolute_url,
>> and in the case of namespace traversal magic, absolute_url doesn't
>> appear to be reliable.
>>
>> I'm going to look into fixing that (either in renderBase.py in Plone or
>> in the portlets and content rules implementations, where I'm seeing
>> this). If I can't, adding a <link /> tag as in (1) above should be
>> pretty easy too.
>
> Imo, fixing absolute_url is the solution. If that works, the kss part
> will work well. But if absolute_url is not working, you would have the
> same problem with <link />.
That obviously depends on how the <link /> is constructed, but there are
other reasons to fix absolute_url() as well. I'm not 100% sure it's
possible, though, but I'll try.
Martin
--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book
More information about the Kss-devel
mailing list