fixed problem with ENABLED/DISABLED, issue 1689

This commit is contained in:
Massimo
2013-09-24 13:29:54 -05:00
parent c4042dc475
commit b67141b1ef
4 changed files with 5 additions and 11 deletions
@@ -494,6 +494,7 @@ def enable():
if is_gae:
return SPAN(T('Not supported'), _style='color:yellow')
elif os.path.exists(filename):
os.unlink(filename)
return SPAN(T('Disable'), _style='color:green')
else:
safe_open(filename, 'wb').write('disabled: True\ntime-disabled: %s' % request.now)