fixed problem with ENABLED/DISABLED, issue 1689
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user