Back to index

plone3  3.1.7
Classes | Functions
ExternalEditor.Plugins.dreamweaver Namespace Reference

Classes

class  EditorProcess

Functions

def getDWPathFromRegistry
def test

Function Documentation

Definition at line 71 of file dreamweaver.py.

00071 
00072 def getDWPathFromRegistry():
00073     try:
00074         hkey = RegOpenKey(HKEY_LOCAL_MACHINE,
00075                    r'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths')
00076         value = RegQueryValue(hkey, 'Dreamweaver.exe')
00077     except:
00078         value = None
00079     RegCloseKey(hkey)
00080     return value
00081 

Here is the caller graph for this function:

Definition at line 82 of file dreamweaver.py.

00082 
00083 def test():
00084     print 'Spawining DW Process...'
00085     f = EditorProcess('C:\\test.html')
00086     if f.isAlive():
00087         print 'yes'
00088         print 'Test Passed.'
00089     else:
00090         print 'no'
00091         print 'Test Failed.'