summaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-07-18 16:23:54 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-07-18 16:23:54 +0100
commitedd5a3efd901df68243372f46087d96d4fbf7715 (patch)
tree037682c9ad9a85c2de8532c5623bf750c12dee5b /utils.py
parent90dfa516da857f300bd0ff483ebf7a412934bbcf (diff)
downloadtroggle-edd5a3efd901df68243372f46087d96d4fbf7715.tar.gz
troggle-edd5a3efd901df68243372f46087d96d4fbf7715.tar.bz2
troggle-edd5a3efd901df68243372f46087d96d4fbf7715.zip
Module documentation docstrings
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index 967ffa4..8f30add 100644
--- a/utils.py
+++ b/utils.py
@@ -6,6 +6,18 @@ import logging
from django.conf import settings
from django.shortcuts import render
from troggle.core.models_caves import CaveDescription
+"""Oddball mixture of critical, superfluous and useful functions which should
+be re-located more sensibly to other modules:
+
+ChaosMonkey(n) - used by survex import to regenerate some .3d files
+save_carefully() - core function that saves troggle objects in the database
+
+various HTML/wiki functions presumably for logbooks?
+
+Use unknown:
+weighted_choice(lst)
+randomLogbookSentence()
+"""
def ChaosMonkey(n):
# returns True once every n calls - randomly