[Plone-UI] HTTP_X_THEME_ENABLED ignores hostname blacklist

Martin Aspeli optilude+lists at gmail.com
Tue May 3 14:11:34 UTC 2011


Hi,

On 3 May 2011 15:06, Zdych Lukáš <lukas.zdych at gmail.com> wrote:
> Hi,
>
> why plone.app.theming ignores "hostname blacklist" and diazo.off GET
> parameter when setting the HTTP_X_THEME_ENABLED header?

That's probably a bug.

> Problem comes up for example when you're working on your theme and you want
> to see unthemed site. You access site via 127.0.0.1 (assuming that you have
> this hostname listed in the diazo controlpanel as unthemed hostname) and
> xslt transform is disabled but HTTP_X_THEME_ENABLED header is still set to
> True because of still enabled diazo theme. Then you won't get plone's
> default stylesheets but will get stylesheets from your theme if you're
> registring them in resource registries as plone.app.theming tutorial shows
> as an example.
>
> I think that this is a bug but maybe there is some reason for this "for me
> strange" behaviour ;-)

Patches or bug reports (dev.plone.org/plone) welcome. ;)

Martin



More information about the UI mailing list