[cups.development] [RFE] STR #2814: Support AllowedChars for String/Password type custom PPD options
larsuebernickel at gmx.de
Wed May 14 17:31:55 PDT 2008
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
Okay, the patch was a bit more work than I hoped it would be ...
It includes the following:
*ParamCustom<option> commands of type string and password can have a POSIX
extended regular expression as a 5th parameter. For a custom option value
to be valid, it must be matched by the regexp.
The web interface exposes a "Custom" choice for all options which can be
set to custom values (this is the patch from STR #1729). It accepts only
valid values (i.e. correct type, between range, matches regexp) and
displays a detailed error message for invalid entries on the top of the
"Set Printer Options" page. The user then has the chance to modify the
values according to the restrictions.
The patch compiles fine against latest svn (r7563).
Hope you like it ;)
More information about the cups