From 8639b38f47e5dbe5c14ef53b28a913bdb0f9b53d Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Sun, 8 Oct 2006 23:22:19 +0000 Subject: [PATCH] use default=-1 for ConfigPin for non guessable default pins --- lib/python/Components/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 3e035d1e..104e4465 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -440,6 +440,8 @@ class ConfigInteger(ConfigSequence): class ConfigPIN(ConfigInteger): def __init__(self, default, len = 4, censor = ""): assert isinstance(default, int), "ConfigPIN default must be an integer" + if default == -1: + default = "aaaa" ConfigSequence.__init__(self, seperator = ":", limits = [(0, (10**len)-1)], censor_char = censor, default = default) self.len = len -- 2.30.2