[Checkins] SVN: Sandbox/gotcha/z3c.taskqueue/trunk/src/z3c/taskqueue/processor.txt remove any reference to _p_jar

Jean-Francois Roche jfroche at jfroche.be
Mon Oct 18 10:21:26 EDT 2010


Log message for revision 117712:
  remove any reference to _p_jar

Changed:
  U   Sandbox/gotcha/z3c.taskqueue/trunk/src/z3c/taskqueue/processor.txt

-=-
Modified: Sandbox/gotcha/z3c.taskqueue/trunk/src/z3c/taskqueue/processor.txt
===================================================================
--- Sandbox/gotcha/z3c.taskqueue/trunk/src/z3c/taskqueue/processor.txt	2010-10-18 14:10:47 UTC (rev 117711)
+++ Sandbox/gotcha/z3c.taskqueue/trunk/src/z3c/taskqueue/processor.txt	2010-10-18 14:21:26 UTC (rev 117712)
@@ -71,8 +71,10 @@
 processor constructor is the database and the second the traversal stack to
 the task service. All other arguments are optional:
 
+  >>> import z3c.taskqueue
+  >>> db = z3c.taskqueue.GLOBALDB
   >>> proc = processor.SimpleProcessor(
-  ...     tasks._p_jar.db(), ['tasks'], waitTime=0.0)
+  ...     db, ['tasks'], waitTime=0.0)
 
 Let's now process the first job. We clear the log and we also have to end any
 existing interactions in order to process the job in this thread:
@@ -176,8 +178,9 @@
 Before testing the processor in the task service, let's have a look at every
 method by itself. So we instantiate the processor:
 
+  >>> db = z3c.taskqueue.GLOBALDB
   >>> proc = processor.MultiProcessor(
-  ...     tasks._p_jar.db(), ['tasks'], waitTime=0)
+  ...     db, ['tasks'], waitTime=0)
 
 The maximum amount of threads can be set as well:
 



More information about the checkins mailing list