Logo Search packages:      
Sourcecode: zope-externaleditor version File versions  Download package

def ExternalEditor::Plugins::homesite5::EditorProcess::__init__ (   self,
  file 
)
Launch editor process

Definition at line 24 of file homesite5.py.

00024                             :
        """Launch editor process"""
        hs = win32com.client.Dispatch('AllaireClientApp.TAllaireClientApp')
        # Try to open the file, keep retrying until we succeed or timeout
        i = 0
        timeout = 45
        while i < timeout:
            try:
                hs.OpenFile(file)
            except:
                i += 1
                if i >= timeout:
                    raise RuntimeError('Could not launch Homesite.')
                sleep(1)
            else:
                break
        self.hs = hs
        self.file = file
        

Generated by  Doxygen 1.6.0   Back to index