Bug 366059: Include the attachment size when viewing bugs in the XML format - Patch by Fr��d��ric Buclin <LpSolit@gmail.com> r=bkor a=myk

This commit is contained in:
lpsolit%gmail.com 2007-01-06 23:51:56 +00:00
parent 5535f707ed
commit 22348b5821
2 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,7 @@
<!ELEMENT bug_when (#PCDATA)>
<!ELEMENT work_time (#PCDATA)>
<!ELEMENT thetext (#PCDATA)>
<!ELEMENT attachment (attachid, date, desc, filename?, type?, data?, flag*)>
<!ELEMENT attachment (attachid, date, desc, filename?, type?, size?, data?, flag*)>
<!ATTLIST attachment
isobsolete (0|1) #IMPLIED
ispatch (0|1) #IMPLIED
@ -67,6 +67,7 @@
<!ELEMENT desc (#PCDATA)>
<!ELEMENT filename (#PCDATA)>
<!ELEMENT type (#PCDATA)>
<!ELEMENT size (#PCDATA)>
<!ELEMENT data (#PCDATA)>
<!ATTLIST data
encoding (base64) #IMPLIED

View File

@ -92,6 +92,7 @@
<desc>[% a.description FILTER xml %]</desc>
<filename>[% a.filename FILTER xml %]</filename>
<type>[% a.contenttype FILTER xml %]</type>
<size>[% a.datasize FILTER xml %]</size>
[% IF displayfields.attachmentdata %]
<data encoding="base64">[% a.data FILTER base64 %]</data>
[% END %]