1 from Components.HTMLSkin import *
2 from Components.GUISkin import *
6 class Screen(dict, HTMLSkin, GUISkin):
9 def __init__(self, session):
10 self.skinName = self.__class__.__name__
11 self.session = session
12 GUISkin.__init__(self)
16 # in order to support screens *without* a help,
17 # we need the list in every screen. how ironic.
21 # assert self.session == None, "a screen can only exec one per time"
22 # self.session = session
23 for (name, val) in self.items():
27 for (name, val) in self.items():
29 # assert self.session != None, "execEnd on non-execing screen!"
32 # never call this directly - it will be called from the session!
34 for x in self.onClose:
37 # fixup circular references
42 for (name, val) in self.items():
45 def close(self, *retval):
46 self.session.close(*retval)
48 def setFocus(self, o):
49 self.instance.setFocus(o.instance)