summaryrefslogtreecommitdiff
path: root/lorry-controller-webapp
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-04-22 14:18:24 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-04-22 14:18:24 +0000
commit6d9e9fc255662707442bd16ac696c5804ff08a85 (patch)
tree35aa9920ce3c317830864e22b1e696bd6710a791 /lorry-controller-webapp
parent5d10e7584ce134998766223d371d3ee22ad9d017 (diff)
downloadlorry-controller-6d9e9fc255662707442bd16ac696c5804ff08a85.tar.gz
Reword comment for finding route classes
Diffstat (limited to 'lorry-controller-webapp')
-rwxr-xr-xlorry-controller-webapp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lorry-controller-webapp b/lorry-controller-webapp
index 239e988..9234498 100755
--- a/lorry-controller-webapp
+++ b/lorry-controller-webapp
@@ -117,11 +117,11 @@ class WEBAPP(cliapp.Application):
'''
- # This is a bit tricky and magic. globals() returns a dict
- # that contains all objects in the global namespace. We
- # iterate over the objects and pick the ones that are
- # subclasses of our superclass (no duck typing here), but ARE
- # NOT the superclass itself.
+ # This is a bit tricky and magic. Find all subclasses of
+ # LorryControllerRoute in the lorrycontroller package.
+ # This saves us from having to maintain a list of them
+ # manually, but the introspective code is not necessarily
+ # the most obvious.
for name in dir(lorrycontroller):
x = getattr(lorrycontroller, name)