On Thursday, June 27, 2013 11:30:05 AM UTC-7, Lukasz Szybalski wrote:
>
>
> Perfect....
> I've modified it and add tif
>
> if len(path) > 1 and path[-1].lower().endswith('.pdf'):
> if path[0] == 'attachment' and not req.args.get('action') ==
> 'delete':
> filepath = req.href(*(['raw-attachment'] + path[1:]))
> req.redirect(filepath)
> elif path[0] == 'browser':
> path[0] = 'export'
> rev = req.args.get('rev', 'HEAD')
> path.insert(1, rev)
> filepath = req.href('/'.join(path))
> req.redirect(filepath)
> if len(path) > 1 and path[-1].lower().endswith('.tif'):
> if path[0] == 'attachment' and not req.args.get('action') ==
> 'delete':
> filepath = req.href(*(['raw-attachment'] + path[1:]))
> req.redirect(filepath)
> elif path[0] == 'browser':
> path[0] = 'export'
> rev = req.args.get('rev', 'HEAD')
> path.insert(1, rev)
> filepath = req.href('/'.join(path))
> req.redirect(filepath)
>
>
Supporting extensions other than `.pdf` seems like a worthwhile enhancement
to the plugin, so I've opened a ticket:
https://trac-hacks.org/ticket/11204
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.