From: wc2so1 Date: Thu, 25 Mar 2004 16:25:15 +0000 (+0000) Subject: In the classes method of HTMLDatabase, the variable 'm' was undefined. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c2760e668d93a49bcc08a62bc0ef8452986b8886;p=roundup.git In the classes method of HTMLDatabase, the variable 'm' was undefined. 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 --- diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index 9a36a47..ec223d9 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -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