Lines Matching defs:allowed
220 # Whitespace (except single space), '/', and '\' are never allowed.
283 """Raises an InvalidPropertyValueError if 'value' is not allowed
287 # Only string values are allowed.
339 def __init__(self, name_pattern, allowed=None, default=None,
355 self.__allowed = allowed
361 return self.__class__(self.__name, allowed=self.__allowed,
372 pargs["allowed"] = self.__allowed
482 # Only string values are allowed.
492 def __init__(self, name, allowed=misc.EmptyI, default="",
494 self.__allowed = allowed
504 """Raises an InvalidPropertyValueError if 'value' is not allowed
539 def allowed(self):
540 """A list of allowed values for this property."""
587 # Only string values are allowed.
593 if self.allowed and "" not in self.allowed and not len(nvalue):
631 # Only dict values are allowed.
643 if self.allowed and "" not in self.allowed and not len(nvalue):
659 if not self.allowed:
662 # ensure that each dictionary in the value is allowed
667 if dic not in self.allowed:
687 """Raises an InvalidPropertyValueError if 'value' is not allowed
746 """Raises an InvalidPropertyValueError if 'value' is not allowed
771 """Raises an InvalidPropertyValueError if 'value' is not allowed
788 """Raises an InvalidPropertyValueError if 'value' is not allowed
818 """Raises an InvalidPropertyValueError if 'value' is not allowed
885 # Whitespace (except single space), '/', and '\' are never allowed