Menu

Commit [r10588]  Maximize  Restore  History

attachment: fixup r10553, in which the second `sum(attachment.size for attachment in attachments)` consumed the `attachments` iterator, resulting in an empty .zip.

Reuse code from `attachment_data()` which was split into a `viewable_attachments()` method.

cboos 2011-02-22

changed /trunk/trac/attachment.py
/trunk/trac/attachment.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB