(self)
Ensure that all properties identified as required by the schema are
    set.
Ensure that all properties identified as required by the schema are
    set.
Ensure that all properties identified as required by the schema are set .
def VerifyHasRequiredProperties(self):
    """Ensure that all properties identified as required by the schema are
    set.
    """

    # TODO(mark): A stronger verification mechanism is needed.  Some
    # subclasses need to perform validation beyond what the schema can enforce.
    for property, attributes in self._schema.iteritems():
      (is_list, property_type, is_strong, is_required) = attributes[0:4]
      if is_required and not property in self._properties:
        raise KeyError, self.__class__.__name__ + ' requires ' + property
def VerifyHasRequiredProperties ( self ) : # TODO(mark): A stronger verification mechanism is needed.  Some # subclasses need to perform validation beyond what the schema can enforce. for property , attributes in self . _schema . iteritems ( ) : ( is_list , property_type , is_strong , is_required ) = attributes [ 0 : 4 ] if is_required and not property in self . _properties : raise KeyError , self . __class__ . __name__ + ' requires ' + property