richer structure in DISABLED

This commit is contained in:
mdipierro
2013-08-09 04:49:10 -05:00
parent a3222f601a
commit 9c1702f5c3
3 changed files with 8 additions and 9 deletions
+1 -3
View File
@@ -491,13 +491,11 @@ 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('time-disabled: %s' % request.now)
safe_open(filename, 'wb').write('disabled: True\ntime-disabled: %s' % request.now)
return SPAN(T('Enable'), _style='color:red')
def peek():
""" Visualize object code """
app = get_app(request.vars.app)