Added informative message when trying to use trackref and it's not enabled

This commit is contained in:
Pablo Hoffman 2009-11-26 18:37:45 -02:00
parent fd50891113
commit 34fcf6ba5b
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ if not settings.getbool('TRACK_REFS'):
object_ref = object
def print_live_refs():
if object_ref is object:
print "The trackref module is disabled. Use TRACK_REFS setting to enable it."
return
print "Live References"
print
now = time()