Fix (again ?) the availalbe typo...

This commit is contained in:
Marc-Olivier Barre 2010-01-06 11:12:21 +01:00
parent ca8890bd2b
commit 4b790fc0f3
5 changed files with 7 additions and 7 deletions

View File

@ -35,7 +35,7 @@ def check_ladish():
print "ladish proxy creation failed"
return
if not proxy.is_availalbe():
if not proxy.is_available():
print "ladish is not available"
return

View File

@ -26,7 +26,7 @@ class a2j_controller:
self.controller = self.bus.get_object(service_name, "/")
self.iface = dbus.Interface(self.controller, control_interface_name)
def is_availalbe(self):
def is_available(self):
try:
self.iface.is_started()
return True

View File

@ -28,7 +28,7 @@ class jack_controller:
self.iface = dbus.Interface(self.controller, controller_interface_name)
#print(self.controller)
def is_availalbe(self):
def is_available(self):
try:
self.iface.IsStarted()
return True

View File

@ -84,7 +84,7 @@ class manager:
proxy = self.get_jack_controller()
except:
return False
return proxy and proxy.is_availalbe()
return proxy and proxy.is_available()
def jack_start(self):
if not self.get_jack_configure().get_selected_driver():
@ -143,7 +143,7 @@ class manager:
proxy = self.get_a2j_controller()
except:
return False
if proxy.is_availalbe():
if proxy.is_available():
return True
self.clear_a2j_controller()
return False
@ -174,7 +174,7 @@ class manager:
proxy = self.get_ladish_controller()
except:
return False
if proxy.is_availalbe():
if proxy.is_available():
return True
self.clear_ladish_controller()
return False

View File

@ -31,7 +31,7 @@ class ladish_proxy:
self.studio_object = self.bus.get_object(service_name, studio_object_path)
self.studio_iface = dbus.Interface(self.studio_object, studio_interface_name)
def is_availalbe(self):
def is_available(self):
try:
self.control_iface.IsStudioLoaded()
return True