Exemplo n.º 1
0
 def __init__(self):
     MiniApplication.__init__(self)
     AEServer.__init__(self)
     self.installaehandler('aevt', 'oapp', self.open_app)
     self.installaehandler('aevt', 'quit', self.quit)
     self.installaehandler('WWW\275', 'sdoc', self.cgihandler)
     if debug:
         self.installaehandler('****', '****', self.otherhandler)
     oldparams = MacOS.SchedParams(0, 0)
     self.mainloop()
     apply(MacOS.SchedParams, oldparams)
Exemplo n.º 2
0
	def __init__(self):
		MiniApplication.__init__(self)
		AEServer.__init__(self)
		self.installaehandler('aevt', 'oapp', self.open_app)
		self.installaehandler('aevt', 'quit', self.quit)
		self.installaehandler('WWW\275', 'sdoc', self.cgihandler)
		if debug:
			self.installaehandler('****', '****', self.otherhandler)
		oldparams = MacOS.SchedParams(0, 0)
		self.mainloop()
		apply(MacOS.SchedParams, oldparams)
Exemplo n.º 3
0
"""cgitest - A minimal CGI applet. Echos parameters back to the client.
Exemplo n.º 4
0
	def __init__(self):
		MiniApplication.__init__(self)
		AEServer.__init__(self)
		self.installaehandler('aevt', 'oapp', ignore)
		self.installaehandler('aevt', 'quit', quit)
		self.installaehandler('misc', 'dosc', doscript)
Exemplo n.º 5
0
 def __init__(self):
     MiniApplication.__init__(self)
     AEServer.__init__(self)
     self.installaehandler('aevt', 'oapp', ignore)
     self.installaehandler('aevt', 'quit', quit)
     self.installaehandler('misc', 'dosc', doscript)
Exemplo n.º 6
0
"""cgitest - A minimal CGI applet. Echos parameters back to the client.
Exemplo n.º 7
0
"""PythonCGISlave.py