From: stefan Date: Tue, 24 Nov 2009 20:39:51 +0000 (+0000) Subject: Do not create bogus non-anonymous objects. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ed9ca7478498e1c19858d2b14b278ae5e390541a;p=roundup.git 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 --- 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