[cups.development] Integer/String options

Michael Sweet mike at easysw.com
Wed Apr 5 11:28:13 PDT 2006


George Liu wrote:
> My concern is:
> 
> 1. In test.ppd, DefaultIntOption=None, but None is not in the IntOption
> list. Will it cause problem for some PPD parser?

It might, and I've fixed this in r5372.  However, the whole purpose of
this file is to test the PPD code via testppd.c and not to be an example
of how to do PPD files (we actually recommend using the PPD compiler in
the CUPS DDK for that...)

> 2. UIConstrains
> For example, I have job type Normal and Secured. Secured job type
> requires a passcode.
> Will "*UIConstraints: *JobType Secured *Passcode None" work?

Yes.

> 3. Passcode requires all digits, but 0032 is different with 32. But for
> string option, there's no way to limit character types.
> There need to be something like AllowedCharacters.

Use the passcode parameter type, with a minimum and maximum length.
(passcode is digits from 0 to 9, password is any character)

> George
> 
>> -----Original Message-----
>> From: cups-dev-bounces at easysw.com [mailto:cups-dev-bounces at easysw.com]
> On
>> Behalf Of Michael Sweet
>> Sent: Tuesday, April 04, 2006 8:28 PM
>> To: cups-dev at easysw.com
>> Subject: Re: [cups.development] Integer/String options
>>
>> George Liu wrote:
>>>
>>> CUPS 1.2rc1 includes test.ppd which utilizes Integer and String
> options,
>>> but those options are not supported by CUPS Web UI.
>>>
>>>
>>>
>>> Is there any reference implementation on this?
>> For UI, no.  You can't set the default option value to a custom
>> value (limitation of PPD spec), so we don't support them in the
>> web interface.
>>
>> I'm still working on my GUI code to support the custom options; I
>> don't know if it will be ready in time for the summit, but I will
>> be posting it eventually...
>>
>> --
>> ______________________________________________________________________
>> Michael Sweet, Easy Software Products           mike at easysw dot com
>> Internet Printing and Publishing Software        http://www.easysw.com
>> _______________________________________________
>> cups-dev mailing list
>> cups-dev at easysw.com
>> http://lists.easysw.com/mailman/listinfo/cups-dev
> 
> 


-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com




More information about the cups-devel mailing list