Hello Manu!
On 5/13/2011 11:34 AM, Emmanuel Blot wrote:
Hi,
I'm looking for a way to retrieve the filename of an attachment from
the IAttachmentManipulator::validate_attachment method.
It seems that attachment.filename is not defined since [6139].
I guess that there is a better way to retrieve this filename, but I
can't figure it out.
Any clues?
No sorry, don't remember why it was commented out. Looking again at the
code suggests it would be harmless to put it back (as suggested in
http://trac.edgewall.org/ticket/9280). If tests still work after that,
perfect (you still have the commit bits of course ;-) ).
However, without fixing this, you have no other choicefor retrieving the
filename in validate_attachment than to start from the req and repeat
all the steps already taken in _do_save (upload =
req.args['attachment'], etc.) :-(
-- Christian
Thanks,
Manu
--
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-dev?hl=en.