Back to index

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

Classes

class  EditorProcess

Functions

def test

Function Documentation

Definition at line 59 of file powerpnt.py.

00059 
00060 def test():
00061     import os
00062     from time import sleep
00063     from tempfile import mktemp
00064     fn = 'E:\Documents and Settings\Default User\Templates\powerpnt.ppt'
00065     print 'Connecting to Powerpoint...'
00066     f = EditorProcess(fn)
00067     print 'Attached to %s %s' % (`f.powerpntapp`, f.powerpntapp.Version)
00068     print ('%s is open...' % fn),
00069     if f.isAlive():
00070         print 'yes'
00071         print 'Test Passed.'
00072     else:
00073         print 'no'
00074         print 'Test Failed.'