-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello,
30.04.2011 19:09, wrote Mitar: > Hi! > > Is there some interface or other way to add virtual attachments to > the resource? Interesting question. Nothing in current code, AFAIK. I've reviewed a lot of the code supporting attachment resource for another development. > By virtual attachment I believe an attachment which would not be > really stored on the hard drive but would just be seen as a file > attached to the resource? So that [attachment:foo] link would work? > The idea is to be able to have external attachments (like links to > external pictures), so [attachment:foo] would translate to this > external link? Oh well, so you'd like to have a choice in current attachment upload dialog to not select a local file but fill in the URL to a remote resource instead, right? Further think about your demand then: 1. Exactly what transport protocols should be supported? 2. Require a download for auto-detecting file properties (file size, for images resolution too)? 3. Provide a method for "re-sync" on remote changes, even auto-detect them? 4. Cache a preview/thumbnail locally? 5. How to deal with (temporary) not available resources? Just to name some aspects. I wonder, if/how this fits in with the ideas about GenericTrac and rework of data models in Trac in general. > I would like to do that through attachments so that I would be able > to reuse existing components. Like ImageMacro. I see. In theory it should be possible to overwrite and extend current attachment code to accept some kind of IAttachmentProvider and make local file store (current Trac core) and your remote store just two options, might allow for creating one provider per remote transport protocol for clarity. If only this is done in a clean fashion, it might even be accepted into Trac trunk.? Yours Steffen Hoffmann (hasienda) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk29Ry4ACgkQ31DJeiZFuHf/KACgzV6mpP2PACgCx4nYrRc6Wuxh 6OIAn28jelzhrWNxh0V7BA5Qd4UaqWSZ =pGRq -----END PGP SIGNATURE----- -- 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.
