diff options
Diffstat (limited to 'core/models.py')
-rw-r--r-- | core/models.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/models.py b/core/models.py index 9fa7cec..8082d6e 100644 --- a/core/models.py +++ b/core/models.py @@ -25,10 +25,15 @@ import troggle.core.models_survex """This file declares TroggleModel which inherits from django.db.models.Model All TroggleModel subclasses inherit persistence in the django relational database. This is known as -the django Object Relkational Mapping (ORM). +the django Object Relational Mapping (ORM). There are more subclasses define in models_caves.py models_survex.py etc. """ +# This variable is a dictionary holding gloablly visible indexes and cache functions. +# It is a Global Object, see https://python-patterns.guide/python/module-globals/ +# troggle.models.TROG +TROG = {} + def get_process_memory(): usage=resource.getrusage(resource.RUSAGE_SELF) return usage[2]/1024.0 |