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

length can be defined in docInit but is not recognized in a length attribute like frame.x1 #109

Open
joeUser555 opened this issue Feb 24, 2023 · 1 comment

Comments

@joeUser555
Copy link

BUG/PROBLEM REPORT / FEATURE REQUEST

I don't know is it a bug report or a feature request.

What I did:

I defined a length in docInit:

    <docInit>
            <length id="l1" value="30mm"/>
    </docInit>

and I used it in a frame:

<frame id="XXX" showBoundary="0" x1="l1" y1="10mm" width="180mm" height="10mm"/>

What I expect to happen:

The l1 reference should be replaced by the length(30mm) defined in the docInit section.

What actually happened:

An exception is raised:
ValueError: The value 'l1' is not a valid measurement.

What version of Python and Zope/Addons I am using:

Python 3.10
Zope-Event 4.6

@regebro
Copy link
Contributor

regebro commented Mar 17, 2023

Length isn't implemented.

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

No branches or pull requests

2 participants