ucscsdk/ucschandle.py
def wait_for_event(self, mo, prop, value, cb, timeout=None, poll_sec=None):
        """
        Waits for `mo.prop == value` and invokes the passed callback
        when the condition is met. The callback is called with one
        argument which is a mo change event. It also contains the Mo

        Args:
            mo (Managed Object): managed object to watch
            prop (str): property to watch
            value (str): property value to wait for
            cb(function): callback on success
            timeout (int): timeout

        Returns:
            None

        Example:
            def cb(mce):
                print mce.mo

            sp_mo = handle.query_dn("org-root/ls-demoSP")
            wait_for_event(sp_mo, 'descr', 'demo_description', cb)
    """
        from .ucsceventhandler import wait

        wait(self, mo, prop, value, cb, timeout_sec=timeout, poll_sec=poll_sec)

        Waits for `mo.prop == value` and invokes the passed callback
        when the condition is met. The callback is called with one
        argument which is a mo change event. It also contains the Mo

        Args:
            mo (Managed Object): managed object to watch
            prop (str): property to watch
            value (str): property value to wait for
            cb(function): callback on success
            timeout (int): timeout

        Returns:
            None

        Example:
            def cb(mce):
                print mce.mo

            sp_mo = handle.query_dn("org-root/ls-demoSP")
            wait_for_event(sp_mo, 'descr', 'demo_description', cb)
    
Waits for `mo.prop == value` and invokes the passed callback
when the condition is met. The callback is called with one
argument which is a mo change event. It also contains the Mo
Waits for ` mo . prop == value ` and invokes the passed callback when the condition is met . The callback is called with one argument which is a mo change event . It also contains the Mo
def wait_for_event(self, mo, prop, value, cb, timeout=None, poll_sec=None):
        from .ucsceventhandler import wait
        wait(self, mo, prop, value, cb, timeout_sec=timeout, poll_sec=poll_sec)
def wait_for_event ( self , mo , prop , value , cb , timeout = None , poll_sec = None ) : from . ucsceventhandler import wait wait ( self , mo , prop , value , cb , timeout_sec = timeout , poll_sec = poll_sec )
Waits for `mo.prop == value` and invokes the passed callback
when the condition is met.
Waits for ` mo . prop == value ` and invokes the passed callback when the condition is met .
"""
        Waits for `mo.prop == value` and invokes the passed callback
        when the condition is met. The callback is called with one
        argument which is a mo change event. It also contains the Mo

        Args:
            mo (Managed Object): managed object to watch
            prop (str): property to watch
            value (str): property value to wait for
            cb(function): callback on success
            timeout (int): timeout

        Returns:
            None

        Example:
            def cb(mce):
                print mce.mo

            sp_mo = handle.query_dn("org-root/ls-demoSP")
            wait_for_event(sp_mo, 'descr', 'demo_description', cb)
    """
None
self
mo
managed object to watch
managed object to watch
prop
property to watch
property to watch
value
property value to wait for
property value to wait for
cb
callback on success
callback on success
timeout
None
poll_sec
examples
def cb(mce):
print mce.mo

sp_mo = handle.query_dn("org-root/ls-demoSP")
wait_for_event(sp_mo, 'descr', 'demo_description', cb)
def cb ( mce ) : print mce . mo sp_mo = handle . query_dn ( " org - root / ls - demoSP " ) wait_for_event ( sp_mo ' descr ' ' demo_description ' cb )