From 6d9e9fc255662707442bd16ac696c5804ff08a85 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 22 Apr 2014 14:18:24 +0000 Subject: Reword comment for finding route classes --- lorry-controller-webapp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lorry-controller-webapp') 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) -- cgit v1.2.1