[Checkins] SVN: z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/ added per-buildout grouping. Needs migration work, though
Reinout van Rees
reinout at vanrees.org
Mon Jun 15 07:07:28 EDT 2009
Log message for revision 100971:
added per-buildout grouping. Needs migration work, though
Changed:
U z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/README.txt
U z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/__init__.py
-=-
Modified: z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/README.txt
===================================================================
--- z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/README.txt 2009-06-15 11:01:09 UTC (rev 100970)
+++ z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/README.txt 2009-06-15 11:07:28 UTC (rev 100971)
@@ -208,6 +208,10 @@
>>> a == b
True
+
+Buildout recipe usage
+---------------------
+
Do the buildout shuffle:
>>> write('buildout.cfg',
@@ -249,6 +253,13 @@
>>> 'WARNING=The entries below were generated by buildout, do not modify' in c.crontab
True
+The entries are grouped per buildout:
+
+ >>> print c # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
+ WARNING=The entries below were generated by buildout, do not modify
+ BUILDOUT=.../sample-buildout
+ # @reboot echo nothing happens
+
Uninstall the recipe:
>>> print system(os.path.join('bin', 'buildout')+' buildout:parts=')
Modified: z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/__init__.py
===================================================================
--- z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/__init__.py 2009-06-15 11:01:09 UTC (rev 100970)
+++ z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/__init__.py 2009-06-15 11:07:28 UTC (rev 100971)
@@ -24,7 +24,9 @@
self.crontab = UserCrontabManager(readcrontab, writecrontab)
self.env = {
'WARNING':
- 'The entries below were generated by buildout, do not modify'}
+ 'The entries below were generated by buildout, do not modify',
+ 'BUILDOUT': buildout['buildout']['directory']
+ }
def install(self):
crontab = self.crontab
More information about the Checkins
mailing list