module timelinelib.wxgui.frames.mainframe.lockhandler¶
-
class
timelinelib.wxgui.frames.mainframe.lockhandler.
LockHandler
[source]¶ Bases:
object
This class is a helper for handling locking of a timeline file.
Whenever a timeline is edited, a lock is created so that no one else can edit the same timeline file at the same time. If you try to edit a timeline file that has a lock on it, a warning message will be displayed.
When the edit is done, the lock is removed.
The lock is accomplished by creating a file in the same directory and with the same name as the timeline file, byt with the extra extension ‘.lock’. The removal of this file releases the lock.
The LockHandler is created and “owned” by the
MainFrameController
class.