Code

In the classes method of HTMLDatabase, the variable 'm' was undefined.
authorwc2so1 <wc2so1@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 25 Mar 2004 16:25:15 +0000 (16:25 +0000)
committerwc2so1 <wc2so1@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 25 Mar 2004 16:25:15 +0000 (16:25 +0000)
I modified the unused list 'r' to be 'm' so now the code appears to function
correctly.

git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2186 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/templating.py

index 9a36a47af6871f8cbf38a404983f61ab37d925af..ec223d9c68d27c0269fd0eee61085163f0ec2e2a 100644 (file)
@@ -269,12 +269,12 @@ class HTMLDatabase:
     def classes(self):
         l = self._client.db.classes.keys()
         l.sort()
-        r = []
+        m = []
         for item in l:
             if item == 'user':
                 m.append(HTMLUserClass(self._client, item))
             m.append(HTMLClass(self._client, item))
-        return r
+        return m
 
 def lookupIds(db, prop, ids, fail_ok=0, num_re=re.compile('-?\d+')):
     ''' "fail_ok" should be specified if we wish to pass through bad values