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)
15 self.onExecBegin = [ ]
17 # in order to support screens *without* a help,
18 # we need the list in every screen. how ironic.
22 for x in self.onExecBegin:
24 # assert self.session == None, "a screen can only exec one per time"
25 # self.session = session
26 for (name, val) in self.items():
30 for (name, val) in self.items():
32 # assert self.session != None, "execEnd on non-execing screen!"
35 # never call this directly - it will be called from the session!
37 for x in self.onClose:
40 # fixup circular references
45 for (name, val) in self.items():
48 def close(self, *retval):
49 self.session.close(*retval)
51 def setFocus(self, o):
52 self.instance.setFocus(o.instance)