(self, key, value)
return value
Inserts a value into the global fields.

        Will throw a ValueError if the key/value pair is invalid.
Inserts a value into the global fields.
Inserts a value into the global fields .
def set_global_field(self, key, value):
        """
        Inserts a value into the global fields.

        Will throw a ValueError if the key/value pair is invalid.
        """
        schema_section = self.get_schema()[self.GLOBAL_KEY].get('keys', {})
        validate.validate_key_throw(
            value,
            schema_section.get(key, {}),
            self.GLOBAL_KEY,
            key
        )
        self._metadata[self.GLOBAL_KEY][key] = value
        return value
def set_global_field ( self , key , value ) : schema_section = self . get_schema ( ) [ self . GLOBAL_KEY ] . get ( 'keys' , { } ) validate . validate_key_throw ( value , schema_section . get ( key , { } ) , self . GLOBAL_KEY , key ) self . _metadata [ self . GLOBAL_KEY ] [ key ] = value return value