Mercurial > p > roundup > code
changeset 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 | 2223e184f9d2 |
| children | 25535180c4b0 |
| files | CHANGES.txt roundup/cgi/templating.py templates/classic/html/issue.item.html |
| diffstat | 3 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Wed Aug 13 23:51:59 2003 +0000 +++ b/CHANGES.txt Sun Aug 17 23:54:42 2003 +0000 @@ -11,6 +11,7 @@ - batch the (list) listings at 500 entries per page (sf bug 759906) - don't have RDBMS backends list retired nodes (sf bug 767319) - fix file downloading +- add action attribute to issue.item form tag 2003-07-29 0.6.0b4
--- 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)
--- a/templates/classic/html/issue.item.html Wed Aug 13 23:51:59 2003 +0000 +++ b/templates/classic/html/issue.item.html Sun Aug 17 23:54:42 2003 +0000 @@ -20,7 +20,8 @@ </span> <form method="POST" name="itemSynopsis" onSubmit="return submit_once()" - enctype="multipart/form-data" tal:condition="context/is_edit_ok"> + enctype="multipart/form-data" tal:condition="context/is_edit_ok" + tal:attributes="action string:%{context/_classname}${context/id}"> <input type="hidden" name=":template" value="item"> <input type="hidden" name=":required" value="title,priority">
