diff options
Diffstat (limited to 'lorry-controller-webapp')
-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) |