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)
14 # in order to support screens *without* a help,
15 # we need the list in every screen. how ironic.
19 # assert self.session == None, "a screen can only exec one per time"
20 # self.session = session
21 for (name, val) in self.items():
25 for (name, val) in self.items():
27 # assert self.session != None, "execEnd on non-execing screen!"
30 # never call this directly - it will be called from the session!
32 # fixup circular references
37 for (name, val) in self.items():
40 def close(self, *retval):
41 self.session.close(*retval)
43 def setFocus(self, o):
44 self.instance.setFocus(o.instance)