has_callback method for option
authorgwen <gremond@cadoles.com>
Fri, 27 Jul 2012 09:46:27 +0000 (11:46 +0200)
committergwen <gremond@cadoles.com>
Fri, 27 Jul 2012 09:46:27 +0000 (11:46 +0200)
tiramisu/option.py

index 28e33ae..58c1b77 100644 (file)
@@ -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