def _wrap(self, meth, *args, **kwargs):
        """
        Calls a given method with the appropriate arguments, or defers such
        a call until the instance has been connected
        """
        if not self.connected:
            return self._connectSchedule(self._wrap, meth, *args, **kwargs)

        opres = meth(self, *args, **kwargs)
        return self.defer(opres)
def _wrap ( self , meth , * args , ** kwargs ) : if not self . connected : return self . _connectSchedule ( self . _wrap , meth , * args , ** kwargs ) opres = meth ( self , * args , ** kwargs ) return self . defer ( opres )
Calls a given method with the appropriate arguments, or defers such
        a call until the instance has been connected