diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-03-23 22:55:43 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-03-23 22:55:43 +0000 |
commit | 4c7deadb9aa2c32db3afc1df7b09faaa6c3a279c (patch) | |
tree | 7e6733448dbf823cfa1d8bcab4b7d8badc6b499e /core/utils.py | |
parent | 42b615d16bed125d1fdafc99c5da216cf36354d3 (diff) | |
download | troggle-4c7deadb9aa2c32db3afc1df7b09faaa6c3a279c.tar.gz troggle-4c7deadb9aa2c32db3afc1df7b09faaa6c3a279c.tar.bz2 troggle-4c7deadb9aa2c32db3afc1df7b09faaa6c3a279c.zip |
documenting fossils
Diffstat (limited to 'core/utils.py')
-rw-r--r-- | core/utils.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/utils.py b/core/utils.py index fe5bd07..f487c7b 100644 --- a/core/utils.py +++ b/core/utils.py @@ -89,6 +89,8 @@ def save_carefully(objectType, lookupAttribs={}, nonLookupAttribs={}): The checking is accomplished using Django's get_or_create and the new_since_parsing boolean field defined in core.models.TroggleModel. + + We are not using new_since_parsing - it is a fossil from Aaron Curtis's design in 2006. So it is always false. """ try: @@ -116,10 +118,10 @@ def save_carefully(objectType, lookupAttribs={}, nonLookupAttribs={}): logging.info(str(instance) + ' was just added to the database for the first time. \n') if not created and instance.new_since_parsing: - logging.info(str(instance) + " has been modified using Troggle, so the current script left it as is. \n") + logging.info(str(instance) + " has been modified using Troggle since parsing, so the current script left it as is. \n") if not created and not instance.new_since_parsing: - logging.info(str(instance) + " existed in the database unchanged since last parse. It was overwritten by the current script. \n") + logging.info(" instance:<"+ str(instance) + "> existed in the database unchanged since last parse. It have been overwritten.") return (instance, created) |