[POS-commit] r7111 - stoqlib/trunk/stoqlib/gui/editors

george at async.com.br george at async.com.br
Mon Aug 6 17:21:45 BRT 2007


Author: george
Date: Mon Aug  6 17:21:44 2007
New Revision: 7111

Modified:
   stoqlib/trunk/stoqlib/gui/editors/parameterseditor.py

Log:
#3380: Erro ao editar parâmetro 'Default Payment Destination'. r=jdahlin


Modified: stoqlib/trunk/stoqlib/gui/editors/parameterseditor.py
==============================================================================
--- stoqlib/trunk/stoqlib/gui/editors/parameterseditor.py	(original)
+++ stoqlib/trunk/stoqlib/gui/editors/parameterseditor.py	Mon Aug  6 17:21:44 2007
@@ -128,3 +128,8 @@
             raise TypeError("ParameterData for `%s' has an invalid "
                             "type: %r" % (self.model.field_name,
                                           field_type))
+
+    def on_confirm(self):
+        if not self.model.field_value:
+            return False
+        return self.model


More information about the POS-commit mailing list