[Checkins] SVN: z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/README.txt Testing addition of environment variable. Not totally happy with the behaviour

Reinout van Rees reinout at vanrees.org
Mon Jun 15 06:41:15 EDT 2009


Log message for revision 100966:
  Testing addition of environment variable. Not totally happy with the behaviour
  (though it is correct).
  

Changed:
  U   z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/README.txt

-=-
Modified: z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/README.txt
===================================================================
--- z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/README.txt	2009-06-15 10:36:43 UTC (rev 100965)
+++ z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/README.txt	2009-06-15 10:41:15 UTC (rev 100966)
@@ -154,7 +154,27 @@
     BUILDOUT=my/path
     @reboot echo "mailto example, my/path"
 
+Adding an extra environment variable to an existing entry results in a second
+entry, but with the extra environment variable.  This is technically correct,
+but it might warrant an exception. TODO.
 
+    >>> c.add_entry('@reboot echo "mailto example, my/path"',
+    ...             MAILTO="something at example.com", BUILDOUT="my/path",
+    ...             BLA='bla')
+    >>> print c
+    MAILTO=""
+    BUILDOUT=my/path
+    @reboot echo "no mailto, my/path"
+    BUILDOUT=my/other
+    @reboot echo "no mailto, my/other, bla"
+    @reboot echo "no mailto, my/other"
+    MAILTO=something at example.com
+    BUILDOUT=my/path
+    @reboot echo "mailto example, my/path"
+    BLA=bla
+    @reboot echo "mailto example, my/path"
+
+
 Read/write crontab methods
 --------------------------
 



More information about the Checkins mailing list