Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPPERCASE theme variables do not work. #169

Open
thet opened this issue Jan 20, 2020 · 0 comments
Open

UPPERCASE theme variables do not work. #169

thet opened this issue Jan 20, 2020 · 0 comments

Comments

@thet
Copy link
Member

thet commented Jan 20, 2020

A manifest.cfg which contains UPPERCASE theme variables like the following:

manifest.cfg

[theme]
title = Test theme
...

[theme:parameters]
PLONE52 = python:True

which is used like that:

<?xml version="1.0" encoding="UTF-8"?>
<rules xmlns="http://namespaces.plone.org/diazo"
       xmlns:css="http://namespaces.plone.org/diazo/css"
       xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
[...]
    <rules if="$PLONE52">
[...]
    </rules>
</rules>

fails with:

    runtime error, element 'choose' [10360:0]
    Variable 'PLONE52' has not been declared. [0:0]
    Undefined variable [0:0]

When using a lowecase variable name, all is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant