When switching to form view create new model if not one exists to have view

display with states
This commit is contained in:
Cédric Krier committed 2008-03-22 16:40:59 +01:00
1 parent feffa6de91
commit 83ba798d88
1 file changed
+3
@@ -223,6 +223,9 @@ class Screen(SignalEvent):
self.screen_container.set(self.current_view.widget)
if self.current_model:
self.current_model.validate_set()
else:
if self.current_view.view_type == 'form':
self.new()
self.display()
self.current_view.set_cursor()
# TODO: set True or False accoring to the type