diff roundup/cgi/templating.py @ 1743:f166cd4fd392

add action attribute to issue.item form action tag
author Richard Jones <richard@users.sourceforge.net>
date Sun, 17 Aug 2003 23:54:42 +0000
parents c3f0b552a55a
children fdaa0b751355
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Wed Aug 13 23:51:59 2003 +0000
+++ b/roundup/cgi/templating.py	Sun Aug 17 23:54:42 2003 +0000
@@ -341,6 +341,10 @@
         except KeyError:
             raise AttributeError, attr
 
+    def designator(self):
+        ''' Return this class' designator (classname) '''
+        return self._classname
+
     def getItem(self, itemid, num_re=re.compile('\d+')):
         ''' Get an item of this class by its item id.
         '''
@@ -544,6 +548,10 @@
             return self[attr]
         except KeyError:
             raise AttributeError, attr
+
+    def designator(self):
+        ''' Return this item's designator (classname + id) '''
+        return '%s%s'%(self._classname, self._nodeid)
     
     def submit(self, label="Submit Changes"):
         ''' Generate a submit button (and action hidden element)

Roundup Issue Tracker: http://roundup-tracker.org/