Commit d28e2ff4 authored by Romain Courteaud's avatar Romain Courteaud 🐸

slapformat does not edit all the time anymore.

Do not use modification date anymore, as it can not be trusted to check slapgrid access
parent 98613c64
...@@ -64,12 +64,12 @@ can_allocate = True\n ...@@ -64,12 +64,12 @@ can_allocate = True\n
comment = \'\'\n comment = \'\'\n
\n \n
# First and simple way to see if computer is dead\n # First and simple way to see if computer is dead\n
modification_date = portal.portal_workflow.getInfoFor(computer, \'time\', wf_id=\'edit_workflow\')\n # modification_date = portal.portal_workflow.getInfoFor(computer, \'time\', wf_id=\'edit_workflow\')\n
if (DateTime() - modification_date) > 1:\n # if (DateTime() - modification_date) > 1:\n
# Computer didn\'t talk to vifib for 1 days, do not consider it as a trustable public server for now\n # # Computer didn\'t talk to vifib for 1 days, do not consider it as a trustable public server for now\n
# slapformat is supposed to run at least once per day\n # # slapformat is supposed to run at least once per day\n
can_allocate = False\n # can_allocate = False\n
comment = "Computer didn\'t contact the server for more than one day"\n # comment = "Computer didn\'t contact the server for more than one day"\n
\n \n
if can_allocate:\n if can_allocate:\n
# Check if computer has error reported\n # Check if computer has error reported\n
......
11 12
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment