> > "File->Export->LyX with extracted files". A Python script will be > > called to extract a .lyx file to a new directory (e.g. > > filename.extracted under the document directory), and arrange files in > > their original layout. > > > By "full reversibility", I take it you mean that you can completely "undo" > the bundling, so that the filesystem is restored to its original state. In > my view---and I thought we'd all agreed about this---this introduces > unacceptable security risks. UNDER NO CIRCUMSTANCES should LyX be able to > write embedded files to arbitrary locations in the file system. So if this > is what you are aiming at, then you should stop aiming at it.
Please read my email more carefully. I said that I would "extract to an empty directory under the document directory". This is an export operation just like how we export to HTML format so the current .lyx document is unchanged. There should be no security problem with this approach. The biggest different between our approaches here is that with 'unbundling', your users work on a different mode, but on the same (changed) document; and my users continue to edit the same document because there is no unbundled mode. Cheers, Bo