On Feb 2, 5:36 pm, "Edward K. Ream" <[email protected]> wrote:
> A better approach would seem to be to use Python's standard > tempfile.mkstemp in c.openWithTempFilePath. We can then dispense with > mod_tempfname entirely. A relatively minor change to c.openWith may get the job done. Instead of first computing the name of the filename corresponding to a node d, we can "invert" the search and search the dictionaries in the list g.app.openWithFiles for a match with the node p.v. If we find a match, we can use the found dict to tell us what temp file to use. In the one-node world this will work nicely. In the bad old days there may have been complications. And there still may be complications. At present, there is code to delete temp files. In the new scheme, we won't be able to delete any temp file until Leo exits. I think that won't be too high a price for something that actually works :-) I would like to get this item off the books. I'll give it quick shot. If there are complications I'll create a separate thread to mess around in. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" 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/leo-editor?hl=en.
