Index: waeup/trunk/src/waeup/utils/batching.txt
===================================================================
--- waeup/trunk/src/waeup/utils/batching.txt	(revision 4878)
+++ waeup/trunk/src/waeup/utils/batching.txt	(revision 4879)
@@ -41,6 +41,8 @@
 '.pending'. So, when the input file is named 'foo.csv' and something
 went wrong during processing, then a file 'foo.csv.create.pending'
-will be generated (if the operation mode was 'create'). The log files
-tells why these lines could not be processed.
+will be generated (if the operation mode was 'create'). The .pending
+file is a CSV file that contains the failed rows appended by a column
+``--ERRROR--`` in which the reasons for processing failures are
+listed.
 
 It looks like this::
@@ -217,5 +219,5 @@
     ...                   ['name', 'dinoports', 'owner', 'taxpayer'],
     ...                    mode='create', user='Bob')
-    (4, {})
+    (4, 0)
 
 The result means: four entries were processed and no warnings
@@ -257,5 +259,4 @@
     Processing time: ... s (... s/item)
     Processed: 4 lines (4 successful/ 0 failed)
-    ------------------------------------------------------------...
     <BLANKLINE>
 
@@ -266,5 +267,5 @@
     ...                   ['name', 'dinoports', 'owner', 'taxpayer'],
     ...                    mode='create', user='Bob')
-    (4, {1: 'This object already exists...})
+    (4, 4)
 
 The log file will tell us this in more detail:
@@ -278,9 +279,4 @@
     Processing time: ... s (... s/item)
     Processed: 4 lines (0 successful/ 4 failed)
-    ----------------------------------------------------------------------
-    line 1 (1): This object already exists. Skipping.
-    line 2 (2): This object already exists. Skipping.
-    line 3 (3): This object already exists. Skipping.
-    line 4 (4): This object already exists. Skipping.
 
 This time a new file was created, which keeps all the rows we could not
@@ -310,7 +306,7 @@
     >>> processor.doImport('newcomers.csv', ['name', 'dinoports', 'owner'],
     ...                    mode='update', user='Bob')
-    (4, {})
-
-No we want to tell, that Wilma got an extra port for her second dino:
+    (4, 0)
+
+Now we want to tell, that Wilma got an extra port for her second dino:
 
     >>> open('newcomers.csv', 'wb').write(
@@ -327,5 +323,5 @@
     >>> processor.doImport('newcomers.csv', ['name', 'dinoports', 'owner'],
     ...                    mode='update', user='Bob')
-    (1, {})
+    (1, 0)
 
     >>> wilma = stoneville['Wilmas Asylum']
@@ -344,5 +340,5 @@
     >>> processor.doImport('newcomers.csv', ['name', 'dinoports', 'owner'],
     ...                    mode='update', user='Bob')
-    (1, {1: 'Cannot update: no such entry.'})
+    (1, 1)
     
 Also invalid values will be spotted:
@@ -355,5 +351,5 @@
     >>> processor.doImport('newcomers.csv', ['name', 'dinoports', 'owner'],
     ...                    mode='update', user='Bob')
-    (1, {1: 'conversion error: ... dinoports: ValueError...NOT-A-NUMBER...
+    (1, 1)
 
 We can also update only some cols, leaving some out. We skip the
@@ -367,5 +363,5 @@
     >>> processor.doImport('newcomers.csv', ['name', 'owner'],
     ...                    mode='update', user='Bob')
-    (1, {})
+    (1, 0)
 
     >>> wilma.owner
@@ -398,5 +394,5 @@
     >>> processor.doImport('newcomers.csv', ['name', 'dinoports', 'owner'],
     ...                    mode='update', user='Bob')
-    (1, {})
+    (1, 0)
 
     >>> wilma.dinoports is None
@@ -412,5 +408,5 @@
     >>> processor.doImport('newcomers.csv', ['name', 'dinoports', 'owner'],
     ...                    mode='update', user='Bob')
-    (1, {})
+    (1, 0)
 
     >>> wilma.dinoports is None
@@ -430,5 +426,5 @@
     >>> processor.doImport('newcomers.csv', ['name', 'dinoports', 'owner'],
     ...                    mode='remove', user='Bob')
-    (1, {})
+    (1, 0)
 
     >>> sorted(stoneville.keys())
