From: <ke...@us...> - 2006-05-09 16:10:47
|
Revision: 2991 Author: kevca Date: 2006-05-09 09:10:35 -0700 (Tue, 09 May 2006) ViewCVS: http://svn.sourceforge.net/mailmanager/?rev=2991&view=rev Log Message: ----------- Fix for [ 1459924 ] Automatic addition of attachments Last bugfix, starting release process Modified Paths: -------------- MailManager/branches/RELENG_2_0/CHANGES.txt MailManager/branches/RELENG_2_0/Extensions/TicketPluggableBrain.py MailManager/branches/RELENG_2_0/version.txt MailManager/branches/RELENG_2_0/www/ticket_index_html.zpt Modified: MailManager/branches/RELENG_2_0/CHANGES.txt =================================================================== --- MailManager/branches/RELENG_2_0/CHANGES.txt 2006-05-09 13:41:00 UTC (rev 2990) +++ MailManager/branches/RELENG_2_0/CHANGES.txt 2006-05-09 16:10:35 UTC (rev 2991) @@ -4,6 +4,7 @@ - Formatting broken on templates for HTML (#1477664) - No HTML response for HTML Required (#1472881) - Selecting No change results in a failure (#1467786) +- Automatic addition of attachments (#1459924) Version 2.0.8 * BUG FIXES Modified: MailManager/branches/RELENG_2_0/Extensions/TicketPluggableBrain.py =================================================================== --- MailManager/branches/RELENG_2_0/Extensions/TicketPluggableBrain.py 2006-05-09 13:41:00 UTC (rev 2990) +++ MailManager/branches/RELENG_2_0/Extensions/TicketPluggableBrain.py 2006-05-09 16:10:35 UTC (rev 2991) @@ -854,7 +854,9 @@ def delAttachment(self, REQUEST, RESPONSE, ids=[]): """Delete an attachment.""" for id in ids: - del REQUEST.SESSION['attachments'][id] + attachments = REQUEST.SESSION['attachments'] + del attachments[id] + REQUEST.SESSION.set('attachments', attachments) return self.ticket_index_html(self, REQUEST) security.declareProtected('MailManager Manage Tickets', 'getPrevNext') Modified: MailManager/branches/RELENG_2_0/version.txt =================================================================== --- MailManager/branches/RELENG_2_0/version.txt 2006-05-09 13:41:00 UTC (rev 2990) +++ MailManager/branches/RELENG_2_0/version.txt 2006-05-09 16:10:35 UTC (rev 2991) @@ -1 +1 @@ -2.0.8 +2.0.9 Modified: MailManager/branches/RELENG_2_0/www/ticket_index_html.zpt =================================================================== --- MailManager/branches/RELENG_2_0/www/ticket_index_html.zpt 2006-05-09 13:41:00 UTC (rev 2990) +++ MailManager/branches/RELENG_2_0/www/ticket_index_html.zpt 2006-05-09 16:10:35 UTC (rev 2991) @@ -810,8 +810,11 @@ <tr> <td><b i18n:translate="attach_label">Attach:</b></td> <td> - <input name="file_attach" type="file" /> + <input name="file_attach" type="file" + onchange="document.getElementById('add_file_attach').click();" + /> <input type="image" src="images/button_go_one.gif" + id="add_file_attach" name="addAttachment:method" height="21" width="21" border="0" hspace="5" alt="Go" align="top" /> @@ -823,9 +826,12 @@ <select name="standard_attach"> <option tal:repeat="sa here/attachments/objectIds" tal:attributes="value sa" - tal:content="sa">test.pdf</option> + tal:content="sa" + onchange="document.getElementById('add_standard_attach').click();"> + test.pdf</option> </select> <input type="image" src="images/button_go_one.gif" + id="add_standard_attach" name="addAttachment:method" height="21" width="21" border="0" hspace="5" alt="Go" align="top" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |