Skip to content

Commit 45c061f

Browse files
author
Richard Jones
committed
[SF#500140] AdminTool.get_class() returns nothing
1 parent 97e5e06 commit 45c061f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

roundup/admin.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: admin.py,v 1.1 2002-01-05 02:11:22 richard Exp $
19+
# $Id: admin.py,v 1.2 2002-01-07 10:41:44 richard Exp $
2020

2121
import sys, os, getpass, getopt, re, UserDict, shlex
2222
try:
@@ -67,7 +67,7 @@ def get_class(self, classname):
6767
'''Get the class - raise an exception if it doesn't exist.
6868
'''
6969
try:
70-
cl = self.db.getclass(classname)
70+
return self.db.getclass(classname)
7171
except KeyError:
7272
raise UsageError, _('no such class "%(classname)s"')%locals()
7373

@@ -995,6 +995,12 @@ def main(self):
995995

996996
#
997997
# $Log: not supported by cvs2svn $
998+
# Revision 1.1 2002/01/05 02:11:22 richard
999+
# I18N'ed roundup admin - and split the code off into a module so it can be used
1000+
# elsewhere.
1001+
# Big issue with this is the doc strings - that's the help. We're probably going to
1002+
# have to switch to not use docstrings, which will suck a little :(
1003+
#
9981004
#
9991005
#
10001006
# vim: set filetype=python ts=4 sw=4 et si

0 commit comments

Comments
 (0)