[Checkins] SVN: z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/__init__.py small tweaks

Reinout van Rees reinout at vanrees.org
Tue Jun 16 09:28:52 EDT 2009


Log message for revision 101079:
  small tweaks

Changed:
  U   z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/__init__.py

-=-
Modified: z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/__init__.py
===================================================================
--- z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/__init__.py	2009-06-16 13:15:39 UTC (rev 101078)
+++ z3c.recipe.usercrontab/trunk/src/z3c/recipe/usercrontab/__init__.py	2009-06-16 13:28:51 UTC (rev 101079)
@@ -16,7 +16,6 @@
 
     def __init__(self, buildout, name, options):
         self.options = options
-
         options['entry'] = '%s\t%s' % (options['times'], options['command'])
         readcrontab = self.options.get('readcrontab', None)
         writecrontab = self.options.get('writecrontab', None)
@@ -27,12 +26,9 @@
             identifier=self.options['identifier'])
 
     def install(self):
-        crontab = self.crontab
-
-        crontab.read_crontab()
-        crontab.add_entry(self.options['entry'])
-        crontab.write_crontab()
-
+        self.crontab.read_crontab()
+        self.crontab.add_entry(self.options['entry'])
+        self.crontab.write_crontab()
         return ()
 
     def update(self):



More information about the Checkins mailing list