Lines Matching refs:cchMin
275 cchMin = getattr(self, 'kcchMin_' + sAttr, 0),
284 cchMin = getattr(self, 'kcchMin_' + sAttr, 0 if fAllowNull else 1),
622 def validateWord(sValue, cchMin = 1, cchMax = 64, asValid = None, aoNilValues = tuple([None, '']), fAllowNull = True):
629 elif cchMin is not None and len(sValue) < cchMin:
630 sError = 'Too short, min %s chars' % (cchMin,);
640 def validateStr(sValue, cchMin = 0, cchMax = 4096, aoNilValues = tuple([None, '']), fAllowNull = True, fAllowUnicodeSymbols = False): # pylint: disable=C0301
645 if cchMin is not None and len(sValue) < cchMin:
646 sError = 'Too short, min %s chars' % (cchMin,);
684 def validateListOfStr(asValues, cchMin = None, cchMax = None, asValidValues = None,
693 if not fAllowNull and cchMin is None:
694 cchMin = 1;
699 elif cchMin is not None and len(sValue) < cchMin:
700 sThisErr = 'Value "%s" is too short, min length is %u chars.' % (sValue, cchMin);
846 def _validateWord(dErrors, sName, sValue, cchMin = 1, cchMax = 64, asValid = None):
848 (sValue, sError) = ModelDataBase.validateWord(sValue, cchMin, cchMax, asValid, fAllowNull = True);
854 def _validateWordNN(dErrors, sName, sValue, cchMin = 1, cchMax = 64, asValid = None):
856 (sValue, sError) = ModelDataBase.validateWord(sValue, cchMin, cchMax, asValid, fAllowNull = False);
862 def _validateStr(dErrors, sName, sValue, cchMin = 0, cchMax = 4096):
864 (sValue, sError) = ModelDataBase.validateStr(sValue, cchMin, cchMax, fAllowNull = True);
870 def _validateStrNN(dErrors, sName, sValue, cchMin = 0, cchMax = 4096):
872 (sValue, sError) = ModelDataBase.validateStr(sValue, cchMin, cchMax, fAllowNull = False);