From 79db94fb820dc3d02f1dbda5328ef23dfbbb4e1e Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 29 Mar 2004 00:49:26 +0000 Subject: [PATCH] db/userN wasn't returning HTMLUser git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2226 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi/templating.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index 68abcaa..372b8fe 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -253,8 +253,13 @@ class HTMLDatabase: # check to see if we're actually accessing an item m = desre.match(item) if m: - self._client.db.getclass(m.group('cl')) - return HTMLItem(self._client, m.group('cl'), m.group('id')) + cl = m.group('cl') + self._client.db.getclass(cl) + if cl == 'user': + klass = HTMLUser + else: + klass = HTMLItem + return klass(self._client, cl, m.group('id')) else: self._client.db.getclass(item) if item == 'user': -- 2.30.2