has_callback method for option

This commit is contained in:
gwen 2012-07-27 11:46:27 +02:00
parent 525aee85f2
commit a88d203790

View file

@ -149,6 +149,12 @@ class Option(HiddenBaseType, DisabledBaseType, ModeBaseType):
def getcallback(self):
return self.callback
def has_callback(self):
if self.callback == None:
return False
else:
return True
def getcallback_params(self):
return self.callback_params