[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] services: Make dovecot and cups configuration abstractions a
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] services: Make dovecot and cups configuration abstractions available |
Date: |
Sat, 26 Nov 2016 19:37:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
John Darrington <address@hidden> skribis:
> 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.
Probably, but this patch is just about moving code around. :-)
Ludo’.