makinacorpus/drupalindustry.templates — Issue #1: Options are implicitely converted to booleans, which clashes with integer options
Author: benoitbryon
Created: 2011-11-18 15:58:50+00:00
State: open

It happens with default configuration files and with user input :

* https://github.com/makinacorpus/drupalindustry.templates/blob/2dbb42946099e4e2f5205c511f5341c0762507e7/src/drupalindustry/templates/base.py#L21
* https://github.com/makinacorpus/drupalindustry.templates/blob/2dbb42946099e4e2f5205c511f5341c0762507e7/src/drupalindustry/templates/base.py#L40

Conversion to boolean had better be explicit than implicit (see zen of python ;))
Suggestion : introduce a boolean_var() which extends paste.script.templates.var(). Or add more complete form validation to paste.script.