def ok( ifaces ): missing = required_interfaces - set( [ q.name for q in ifaces ] ) if missing: raise error.IntrospectionFailed('Introspection failed to find interfaces: ' + ','.join(missing)) prox = RemoteDBusObject( self, busName, objectPath, ifaces ) self._weakProxies[ weak_id ] = prox return prox
def err(e): raise error.IntrospectionFailed('Introspection Failed: ' + e.getErrorMessage())