Add support for registering of statistics functions instead of statics app importing from other apps

This commit is contained in:
Roberto Rosario
2012-07-29 01:55:27 -04:00
parent cee79dc0cc
commit bd2fbe605c
2 changed files with 7 additions and 5 deletions

5
apps/statistics/api.py Normal file
View File

@@ -0,0 +1,5 @@
statistics_functions = []
def register_statistics(function):
statistics_functions.append(function)