Leo shall soon sport a new ExternalFiles class in leoApp.py. This class will eliminate duplicate code and will simplify the code in other ways.
Leo will create a singleton instance of this class, g.app.externalFilesController, on startup. An IdleTime timer will fire g.app.externalFilesController.on_idle_time. Leo's 'idle-time' events will not be involved in any way. The ExternalFiles class will handle all details of handling changes to external files: - Handling open-with. - Tracking external files corresponding to @<file> nodes. This class will unify disparate code: - Handling temporary files and computing their paths. - Computing timestamps and checksums. - The editnode_on_idle code will move into ExternalFiles . - Code from the mod_tempfname plugin will move into ExternalFiles. - As stated previously, the mod_tempfname plugin will be retired. Edward P.S. The idea for this class partly came from a further simplification of the code discussed in An excellent encapsulation pattern <https://groups.google.com/forum/#!topic/leo-editor/K_cZP23S9U0>. EKR -- You received this message because you are subscribed to the Google Groups "leo-editor" 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/leo-editor. For more options, visit https://groups.google.com/d/optout.
