def EnableCronJob(self, cronjob_id):
    """Enables a cronjob."""
    job = self.cronjobs.get(cronjob_id)
    if job is None:
      raise db.UnknownCronJobError("Cron job %s not known." % cronjob_id)
    job.enabled = True
def EnableCronJob ( self , cronjob_id ) : job = self . cronjobs . get ( cronjob_id ) if job is None : raise db . UnknownCronJobError ( "Cron job %s not known." % cronjob_id ) job . enabled = True
Enables a cronjob.