Skip to content

Need new class for MediaColDatabase to be generated from genTypes.py #125

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

Closed
HPSudip opened this issue Aug 8, 2022 · 3 comments · Fixed by #128
Closed

Need new class for MediaColDatabase to be generated from genTypes.py #125

HPSudip opened this issue Aug 8, 2022 · 3 comments · Fixed by #128

Comments

@HPSudip
Copy link
Collaborator

HPSudip commented Aug 8, 2022

As per latest IANA spec https://www.iana.org/assignments/ipp-registrations/ipp-registrations.xhtml, MediaColDatabase and MediaColReady has different attribute types for MediaSize member attribute.

media-col -> media -size -> (x-dimension, y-dimension) -> integer(1:MAX)

media-col-database -> media -size -> (x-dimension, y-dimension)  --> integer(1:MAX) | rangeOfInteger(1:MAX)

The requirement is such that, we should not allow rangeOfInteger in the job template attribute media-col, but only allows rangeOfInteger in the Printer Description attributes media-col-database and media-col-ready.

Currently genTypes.py is unable to create a separate class for MediaColDatabase and instead it tries to put everything back to MediaCol with a warning on new member.
WARN: Collection type already has different member media-size

@wifiprintguy
Copy link

Keep an eye on this email thread on the ipp@pwg.org email reflector: https://www.pwg.org/pipermail/ipp/2022/021192.html

media-col-ready/media-size/y-dimension will have a syntax of integer(0:MAX)|rangeOfInteger(1:MAX) so that the printer can provide 0 (zero or nil) to indicate a roll length that is unknown or unbounded. That likely will also apply to media-col-database/media-size/y-dimension as well.

This was referenced Aug 29, 2022
@HPNavjot
Copy link
Collaborator

Working latest XML file
Internet Printing Protocol (IPP) Registrations.zip

@HPNavjot
Copy link
Collaborator

HPNavjot commented Sep 28, 2022

Issues addressed in pull #128
Changes in genTypes.py:

  • added member attributes of media-col to media-col-database due to [PWG5100.7]
  • addressed changed syntax for media-col-database => media-size to rangeOfInteger
  • few attributes had '(extension)' suffix , added logic to strip '(extension)' suffix to member and sub-member attributes.
  • there are member attributes that are ignored\deprecated in some attributes but used in other.

Rest changes in model files are due to execution of genTypes.py that reflects the latest IIP registrations.xml

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

Successfully merging a pull request may close this issue.

3 participants