Good ideas. I think they can both be done.
On Jun 6, 2:11 pm, Praneeth <life...@gmail.com> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello all, > > I was wondering if the following 2 features could be added to newcron.py > > 1) Support sourcing application paths in crontab folder: > > Example: > > @reboot root *applications/eden/cron/sms_handler_api.py > > Use case: > > Since we are developing out application ( Sahana-eden used to be called > SahanaPy) to be redistributed and installed with different application > names, i.e eden above could be replaced with say, wfp. It would be nice > if some syntax like the following could be used: > > @reboot root *currentapp/cron/sms_handler_api.py > > 2) Support for adding an extra attribute to limit a cron entry to work > with a particular type of cron. > > Example: > > @reboot extcron root *currentapp/cron/sms_handler_api.py > > Use case: > > Say I have a threaded application inside the sms_handler_api.py -> it > would fail to work with softcron or hardcron. I would simply like the > cron service to ignore the entry if it is not invoked via extcron. > > I would be grateful if the features are added into the trunk. > > Thanks, > Praneeth > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ > > iQEcBAEBAgAGBQJMC/LUAAoJENaaLQPAdAyuMOIH/RX1A/IEeIZ8dezec3/o96Et > FwAgkKvihlKVc9pROF4/stWeZZdz99NSGji8qkIYg9AykK/cb2MTbVYcYW3CR9zo > TuOkQ9rK8+josRY7CYh4r9990Mb6hVcXN1Q7SZ7DCN/Uk4hScEoULqxT+Z35KVby > pJVnV6ned0P3mZ5cYHoRk/9ZKag2GO4smD03nB6QQhHmyr+gB1WvhjyRdM73SlDR > yHciHqypkotmUD1+MD+uBLLcIN4emBhKVg8kzdzZXHfanMAW73auFzuqvBWHERTy > ZaQswc2D70lWvhuL03G3ZjkdQqRT3H5VQiEOW+U17XYUu712j4LaHcnRdnz7q+E= > =j+ns > -----END PGP SIGNATURE-----