It is a bug.

Massimo

On Mar 18, 3:07 pm, Jonathan Lundell <[email protected]> wrote:
> When I completely remove admin, cron crashes:
>
> > >>>>>>>  File "/opt/vtc/vpepmanage/web2py/web2py.py", line 20, in <module>
> > >>>>>>>    gluon.widget.start(cron=True)
> > >>>>>>>  File "/opt/vtc/vpepmanage/web2py/gluon/widget.py", line 732, in 
> > >>>>>>> start
> > >>>>>>>    cron = contrib.cron.hardcron()
> > >>>>>>>  File "/opt/vtc/vpepmanage/web2py/gluon/contrib/cron.py", line 44, 
> > >>>>>>> in __init__
> > >>>>>>>    self.launch()
> > >>>>>>>  File "/opt/vtc/vpepmanage/web2py/gluon/contrib/cron.py", line 48, 
> > >>>>>>> in launch
> > >>>>>>>    crondance(self.path, 'hard', startup = self.startup)
> > >>>>>>>  File "/opt/vtc/vpepmanage/web2py/gluon/contrib/cron.py", line 240, 
> > >>>>>>> in crondance
> > >>>>>>>    token = Token(cron_path)
> > >>>>>>>  File "/opt/vtc/vpepmanage/web2py/gluon/contrib/cron.py", line 88, 
> > >>>>>>> in __init__
> > >>>>>>>    open(self.path,'wb').close()
> > >>>>>>> IOError: [Errno 2] No such file or directory: 
> > >>>>>>> '/opt/vtc/vpepmanage/web2py/applications/admin/cron/cron.master'
>
> Is it enough to simply create the empty directories?
>
> At any rate, I don't think that cron should depend on admin (or its directory 
> structure); maybe there should be a cron directory at the web2py root?

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to