summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 34f7822)
raw | patch | inline | side by side (parent: 34f7822)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 17 Aug 2003 23:54:42 +0000 (23:54 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 17 Aug 2003 23:54:42 +0000 (23:54 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1811 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/cgi/templating.py | patch | blob | history | |
templates/classic/html/issue.item.html | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index b3f669dc54bdd97415c27aa83234079b472e3fb6..f11b98a0d8b7cafd3c3b21a33b73d65692d406cc 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
- 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
index dc8482639db6cb89ae14e0bc38438776989c6691..7a14ffbedd68e19026b48fa7922e4327047b9440 100644 (file)
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.
'''
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)
index 8db909bff82633cc2b8fca432ffeba1d70a9d8bd..740e9f8a1c4c8c54566aedeed824cbd7fe108d5f 100644 (file)
</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">