def make_initial_modules(self): RExec.make_initial_modules(self) self.make_al() self.make_socket() self.make_sunaudiodev() self.make_types() self.make_iluRt() self.make_os()
def __init__(self, hooks=None, verbose=1, app=None, group=None): self.app = app self.appletgroup = group or "." self.backup_modules = {} if not hooks: hooks = AppletRHooks(self, verbose) RExec.__init__(self, hooks, verbose) self.modules['Dialog'] = SafeDialog self.modules['tkinter'] = Safetkinter self.special_modules = self.modules.keys() self.save_files() self.set_files() # Don't give applets the real SystemExit, since it exits Grail! self.modules['__builtin__'].SystemExit = "SystemExit"
def __init__(self, hooks=None, verbose=1, app=None, group=None): self.app = app self.appletgroup = group or "." self.backup_modules = {} if not hooks: hooks = AppletRHooks(self, verbose) RExec.__init__(self, hooks, verbose) self.modules['Dialog'] = SafeDialog self.modules['Tkinter'] = SafeTkinter self.special_modules = self.modules.keys() self.save_files() self.set_files() # Don't give applets the real SystemExit, since it exits Grail! self.modules['__builtin__'].SystemExit = "SystemExit"
def add_module(self, mname): if self.modules.has_key(mname): return self.modules[mname] if self.backup_modules.has_key(mname): self.modules[mname] = m = self.backup_modules[mname] self.backup_modules[mname] return m return RExec.add_module(self, mname)