[cups.development] [RFE] STR #2814: Support AllowedChars for String/Password type custom PPD options
msweet at apple.com
Mon May 12 12:32:47 PDT 2008
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
I am hesitant to extend the custom option syntax in 1.4 without some more
discussion. In particular, it seems like using the POSIX regular
expression syntax would be better than a simple set of allowed characters
and open up more robust string validation.
As for range limiting the custom input, that is the responsibility of the
caller/application - the custom parameter data is provided so that the UI
can map the limits appropriately to UI controls/feedback. Like
UIConstraints, they aren't enforced by the library because the recovery
mode (what to do when a custom parameter is out of range or when a
conflicting choice is made) cannot be described in the PPD.
More information about the cups