(self)
The default identifier used if this element is not named by the user.
The default identifier used if this element is not named by the user.
The default identifier used if this element is not named by the user .
def _default_identifier(self):
    """The default identifier used if this element is not named by the user."""
    if not self._spec.identifier:
      return None
    else:
      siblings = self.root.find_all(self._spec.namespace,
                                    exclude_attachments=True)
      return '{separator}unnamed_{namespace}_{index}'.format(
          separator=constants.PREFIX_SEPARATOR,
          namespace=self._spec.namespace,
          index=siblings.index(self))
def _default_identifier ( self ) : if not self . _spec . identifier : return None else : siblings = self . root . find_all ( self . _spec . namespace , exclude_attachments = True ) return '{separator}unnamed_{namespace}_{index}' . format ( separator = constants . PREFIX_SEPARATOR , namespace = self . _spec . namespace , index = siblings . index ( self ) )