diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-04-22 14:18:24 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-04-22 14:18:24 +0000 |
commit | 6d9e9fc255662707442bd16ac696c5804ff08a85 (patch) | |
tree | 35aa9920ce3c317830864e22b1e696bd6710a791 | |
parent | 5d10e7584ce134998766223d371d3ee22ad9d017 (diff) | |
download | lorry-controller-6d9e9fc255662707442bd16ac696c5804ff08a85.tar.gz |
Reword comment for finding route classes
-rwxr-xr-x | lorry-controller-webapp | 10 |
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) |