summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/build
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2019-03-24 22:43:31 +0100
committer hap <happppp@users.noreply.github.com>2019-03-24 22:43:46 +0100
commit5ec1befa6342be3b915206a00082668b1c33ba38 (patch)
tree6a04e2694be67d708956240c8f5e0f4b418dd5e2 /scripts/build
parent7e8e7c0ea8abd3b8ec47eee9493aa6099820130a (diff)
complay: add inputraw (nw)
Diffstat (limited to 'scripts/build')
-rw-r--r--scripts/build/complay.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/build/complay.py b/scripts/build/complay.py
index dff981e65c9..ba431cc91d6 100644
--- a/scripts/build/complay.py
+++ b/scripts/build/complay.py
@@ -455,10 +455,18 @@ class LayoutChecker(Minifyer):
self.handleError('Element %s has inputtag attribute without inputmask attribute' % (name, ))
self.checkTag(attrs['inputtag'], name, 'inputtag')
elif 'inputmask' in attrs:
- self.handleError('Element %s has inputmask attribute without inputtag attirbute' % (name, ))
+ self.handleError('Element %s has inputmask attribute without inputtag attribute' % (name, ))
inputmask = self.checkIntAttribute(name, attrs, 'inputmask', None)
if (inputmask is not None) and (0 == inputmask):
self.handleError('Element %s has attribute inputmask "%s" is zero' % (name, attrs['inputmask']))
+ inputraw = self.checkIntAttribute(name, attrs, 'inputraw', None)
+ if (inputraw is not None):
+ if 'inputmask' not in attrs:
+ self.handleError('Element %s has inputraw attribute without inputmask attribute' % (name, ))
+ if 'inputtag' not in attrs:
+ self.handleError('Element %s has inputraw attribute without inputtag attribute' % (name, ))
+ if ((0 > inputraw) or (1 < inputraw)):
+ self.handleError('Element %s attribute inputraw "%s" not in valid range 0-1' % (name, attrs['inputraw']))
self.handlers.append((self.objectStartHandler, self.objectEndHandler))
self.have_bounds.append(False)
self.have_orientation.append(False)