[Kss-devel] How is the KSS context determined?

Martin Aspeli optilude at gmx.net
Wed Oct 24 01:39:16 CEST 2007


Hi guys,

How is the KSS context determined? That is, what is the base URL used 
when submitting a server-side request?

I think it's failing on namespace traversal adapters. I tried to use 
some KSS in a portlet, which is edited as e.g.

http://localhost:8080/test/++contextportlets++plone.rightcolumn/+/collective.portlet.tal.TALPortlet

KSS thinks the context here is the Plone site (/test), not 
/test/++contextportlets++plone.rightcolumn/+ (the adding view).

The same happens on edit:

http://localhost:8080/test/++contextportlets++plone.rightcolumn/Assignment/edit

This also gets the context as the site root, even though 
++contextportlets++plone.rightcolumn/Assignment is a persistent object.

Thi sis becoming a pretty big problem, as we're trying to make use of 
KSS in formlib widgets, which are used for things like portlets and 
content rules. :)

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