(self)
Return the name corresponding to an object.

    Not all objects necessarily need to be nameable, and not all that do have
    a "name" property.  Override as needed.
Return the name corresponding to an object.
Return the name corresponding to an object .
def Name(self):
    """Return the name corresponding to an object.

    Not all objects necessarily need to be nameable, and not all that do have
    a "name" property.  Override as needed.
    """

    # If the schema indicates that "name" is required, try to access the
    # property even if it doesn't exist.  This will result in a KeyError
    # being raised for the property that should be present, which seems more
    # appropriate than NotImplementedError in this case.
    if 'name' in self._properties or \
        ('name' in self._schema and self._schema['name'][3]):
      return self._properties['name']

    raise NotImplementedError, \
          self.__class__.__name__ + ' must implement Name'
def Name ( self ) : # If the schema indicates that "name" is required, try to access the # property even if it doesn't exist.  This will result in a KeyError # being raised for the property that should be present, which seems more # appropriate than NotImplementedError in this case. if 'name' in self . _properties or ( 'name' in self . _schema and self . _schema [ 'name' ] [ 3 ] ) : return self . _properties [ 'name' ] raise NotImplementedError , self . __class__ . __name__ + ' must implement Name'