commit
b3763be73e
|
@ -303,7 +303,7 @@ func (e *AttributeEncoder) Encode(attribute string, value interface{}) error {
|
|||
}
|
||||
}
|
||||
default:
|
||||
return fmt.Errorf("type %T is not supportet", value)
|
||||
return fmt.Errorf("type %T is not supported", value)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
|
@ -393,6 +393,7 @@ var (
|
|||
AttributeNumberUp: TagInteger,
|
||||
AttributeOrientationRequested: TagEnum,
|
||||
AttributePPDName: TagName,
|
||||
AttributeNumberOfDocuments: TagInteger,
|
||||
AttributePrintQuality: TagEnum,
|
||||
AttributePrinterErrorPolicy: TagName,
|
||||
AttributePrinterInfo: TagText,
|
||||
|
@ -401,7 +402,7 @@ var (
|
|||
AttributePrinterLocation: TagText,
|
||||
AttributePrinterResolution: TagResolution,
|
||||
AttributePrinterState: TagEnum,
|
||||
AttributePrinterStateReason: TagKeyword,
|
||||
AttributePrinterStateReasons: TagKeyword,
|
||||
AttributePrinterURI: TagUri,
|
||||
AttributePurgeJobs: TagBoolean,
|
||||
AttributeRequestedAttributes: TagKeyword,
|
||||
|
|
|
@ -167,7 +167,7 @@ func (c *CUPSClient) CreatePrinter(name, deviceURI, ppd string, shared bool, err
|
|||
req.OperationAttributes[AttributePrinterURI] = c.getPrinterUri(name)
|
||||
req.OperationAttributes[AttributePPDName] = ppd
|
||||
req.OperationAttributes[AttributePrinterIsShared] = shared
|
||||
req.PrinterAttributes[AttributePrinterStateReason] = "none"
|
||||
req.PrinterAttributes[AttributePrinterStateReasons] = "none"
|
||||
req.PrinterAttributes[AttributeDeviceURI] = deviceURI
|
||||
req.PrinterAttributes[AttributePrinterInfo] = information
|
||||
req.PrinterAttributes[AttributePrinterLocation] = location
|
||||
|
|
Loading…
Reference in New Issue