Skip to content

Commit 00de271

Browse files
author
Brian Kelley
committed
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.
1 parent bce426c commit 00de271

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/cgi/templating.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,12 @@ def __getattr__(self, attr):
269269
def classes(self):
270270
l = self._client.db.classes.keys()
271271
l.sort()
272-
r = []
272+
m = []
273273
for item in l:
274274
if item == 'user':
275275
m.append(HTMLUserClass(self._client, item))
276276
m.append(HTMLClass(self._client, item))
277-
return r
277+
return m
278278

279279
def lookupIds(db, prop, ids, fail_ok=0, num_re=re.compile('-?\d+')):
280280
''' "fail_ok" should be specified if we wish to pass through bad values

0 commit comments

Comments
 (0)