コード例 #1
0
 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()
コード例 #2
0
 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()
コード例 #3
0
 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"
コード例 #4
0
 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"
コード例 #5
0
 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)
コード例 #6
0
 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)