From a88d203790d4943aec143f732d839463e90f70e2 Mon Sep 17 00:00:00 2001 From: gwen Date: Fri, 27 Jul 2012 11:46:27 +0200 Subject: [PATCH] has_callback method for option --- tiramisu/option.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tiramisu/option.py b/tiramisu/option.py index 28e33ae..58c1b77 100644 --- a/tiramisu/option.py +++ b/tiramisu/option.py @@ -148,6 +148,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