From ed9ca7478498e1c19858d2b14b278ae5e390541a Mon Sep 17 00:00:00 2001 From: stefan Date: Tue, 24 Nov 2009 20:39:51 +0000 Subject: [PATCH] Do not create bogus non-anonymous objects. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4390 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi/templating.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index b46f9d6..4c7b2c9 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -1240,7 +1240,12 @@ class HTMLProperty(HTMLInputMixin, HTMLPermissions): self._anonymous = anonymous self._name = name if not anonymous: - self._formname = '%s%s@%s'%(classname, nodeid, name) + if nodeid: + self._formname = '%s%s@%s'%(classname, nodeid, name) + else: + # This case occurs when creating a property for a + # non-anonymous class. + self._formname = '%s@%s'%(classname, name) else: self._formname = name -- 2.30.2