From: richard Date: Mon, 29 Mar 2004 00:49:26 +0000 (+0000) Subject: db/userN wasn't returning HTMLUser X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=79db94fb820dc3d02f1dbda5328ef23dfbbb4e1e;p=roundup.git db/userN wasn't returning HTMLUser git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2226 57a73879-2fb5-44c3-a270-3262357dd7e2 --- 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':