1. toscawidgets
  2. tw2.forms

Commits

Ralph Bean  committed 2f66017

Support for form.submit being None (bugfix)

  • Participants
  • Parent commits e766d17
  • Branches default

Comments (0)

Files changed (1)

File tw2/forms/widgets.py

View file
 
     @classmethod
     def post_define(cls):
-        cls.submit = cls.submit(parent=cls)
+        if cls.submit:
+            cls.submit = cls.submit(parent=cls)
 
     def __init__(self, **kw):
         super(Form, self).__init__(**kw)