[Checkins] SVN: Sandbox/gotcha/five.taskqueue/src/five/taskqueue/processor.py refactor before adding multiprocessor

Godefroid Chapelle gotcha at bubblenet.be
Wed Apr 14 05:48:31 EDT 2010


Log message for revision 110840:
  refactor before adding multiprocessor

Changed:
  U   Sandbox/gotcha/five.taskqueue/src/five/taskqueue/processor.py

-=-
Modified: Sandbox/gotcha/five.taskqueue/src/five/taskqueue/processor.py
===================================================================
--- Sandbox/gotcha/five.taskqueue/src/five/taskqueue/processor.py	2010-04-14 09:46:19 UTC (rev 110839)
+++ Sandbox/gotcha/five.taskqueue/src/five/taskqueue/processor.py	2010-04-14 09:48:30 UTC (rev 110840)
@@ -17,8 +17,7 @@
         self.body = body
 
 
-class SimpleProcessor(BaseSimpleProcessor):
-    """ SimpleProcessor for Zope2 """
+class Z2PublisherMixin(object):
 
     def call(self, method, args=(), errorValue=ERROR_MARKER):
         path = self.servicePath[:] + [method]
@@ -42,3 +41,7 @@
             request.close()
             conn.close()
             return request.response.body
+
+
+class SimpleProcessor(Z2PublisherMixin, BaseSimpleProcessor):
+    """ SimpleProcessor for Zope2 """



More information about the checkins mailing list