guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] services: Make dovecot and cups configuration abstractions a


From: John Darrington
Subject: Re: [PATCH] services: Make dovecot and cups configuration abstractions available
Date: Sat, 26 Nov 2016 09:49:44 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Thu, Nov 24, 2016 at 07:17:42PM +0100, Julien Lepiller wrote:


     +(define (serialize-string field-name val)
     +  (serialize-field field-name val))

I find it useful to allow such fields to take the value #f and meaning
that they will be ignored by their respective serialize- procedures.
For example:
  (define (serialize-string field-name val)
   (if val
     (serialize-field field-name val)))

     +(define (serialize-boolean field-name val)
     +  (serialize-string field-name (if val "yes" "no")))

Some configs require "true" and "false" instead of "yes" and "no".  So perhaps
this can be generalised a little.

J'
     


-- 
Avoid eavesdropping.  Send strong encrypted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]