[Subversion] / PEAK / src / peak / running / interfaces.py  

Diff of /PEAK/src/peak/running/interfaces.py

Parent Directory | Revision Log

version 1829, Thu Oct 7 20:15:47 2004 UTC version 1830, Thu Oct 7 22:51:38 2004 UTC
Line 20 
Line 20 
   
     'IPeriodicTask', 'ITaskQueue', 'IMainLoop', 'IRerunnableCGI',      'IPeriodicTask', 'ITaskQueue', 'IMainLoop', 'IRerunnableCGI',
   
     'IAdaptiveTask', 'IAdaptiveTaskSPI', 'ILock',      'IAdaptiveTask', 'IAdaptiveTaskSPI', 'ILock', 'IWSGIApplication',
   
     'IBasicReactor', 'ITwistedReactor', 'ICheckableResource',      'IBasicReactor', 'ITwistedReactor', 'ICheckableResource',
   
Line 147 
Line 147 
     def runCGI(stdin,stdout,stderr,environ,argv=()):      def runCGI(stdin,stdout,stderr,environ,argv=()):
         """Perform function and return exit code"""          """Perform function and return exit code"""
   
   class IWSGIApplication(Interface):
       """A WSGI (PEP 333) application object"""
       def __call__(environ,start_response):
           """See PEP 333"""
   
 def CGIFromComponent(ob):  def WSGIFromComponent(ob):
     """Turn PEAK components into publishable web apps"""      """Turn PEAK components into publishable web apps"""
     from peak.web.publish import CGIPublisher      from peak.web.publish import CGIPublisher
     return CGIPublisher.fromApp(ob)      return CGIPublisher.fromApp(ob)
   
 declareAdapter(CGIFromComponent,  declareAdapter(WSGIFromComponent,
     provides=[IRerunnableCGI], forProtocols=[IComponent]      provides=[IWSGIApplication], forProtocols=[IComponent]
 )  )
   
   
   
   
   
   
 class IPeriodicTask(Interface):  class IPeriodicTask(Interface):
   
     """Thing that does work periodically"""      """Thing that does work periodically"""


Generate output suitable for use with a patch program
Legend:
Removed from v.1829  
changed lines
  Added in v.1830

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help