Beispiel #1
0
    def __init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps):
        """Initialize a managed object (MO).

        This should not be called directly.  Instead initialize the Mo from
        the model that you need.

        Args:
          parentMoOrDn (str or cobra.mit.naming.Dn or cobra.mit.mo.Mo): The
            parent managed object (MO) or distinguished name (Dn).
          markDirty (bool): If True, the MO is marked has having changes that
            need to be committed.  If False the Mo is not marked as having
            changes that need to be committed.
          *namingVals: Required values that are used to name the Mo, i.e. they
            become part of the MOs distinguished name.
          **creationProps: Properties to be set at the time the MO is created,
            these properties can also be set after the property is created if
            needed.

        Raises:
          NotImplementedError: If this class is called directly
        """
        if self.__class__ == Mo:
            raise NotImplementedError('Mo cannot be instantiated.')
        BaseMo.__init__(self, parentMoOrDn, markDirty, *namingVals,
                        **creationProps)
Beispiel #2
0
    def __init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps):
        """Initialize a managed object (MO).

        This should not be called directly.  Instead initialize the Mo from
        the model that you need.

        Args:
          parentMoOrDn (str or cobra.mit.naming.Dn or cobra.mit.mo.Mo): The
            parent managed object (MO) or distinguished name (Dn).
          markDirty (bool): If True, the MO is marked has having changes that
            need to be committed.  If False the Mo is not marked as having
            changes that need to be committed.
          *namingVals: Required values that are used to name the Mo, i.e. they
            become part of the MOs distinguished name.
          **creationProps: Properties to be set at the time the MO is created,
            these properties can also be set after the property is created if
            needed.

        Raises:
          NotImplementedError: If this class is called directly
        """
        if self.__class__ == Mo:
            raise NotImplementedError('Mo cannot be instantiated.')
        BaseMo.__init__(self, parentMoOrDn, markDirty, *namingVals,
                        **creationProps)
 def __init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps):
     if self.__class__ == Mo:
         raise NotImplementedError('Mo cannot be instantiated.')
     BaseMo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
Beispiel #4
0
 def __init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps):
     if self.__class__ == Mo:
         raise NotImplementedError('Mo cannot be instantiated.')
     BaseMo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)