Kaydet (Commit) 201788d3 authored tarafından Xisco Fauli's avatar Xisco Fauli

pyletter: Make call the wizard remotely possible

Change-Id: I6cf58bb25cc44118b086fbe1339aae2c4069416b
üst b617e842
...@@ -66,19 +66,20 @@ class LetterWizardDialogImpl(LetterWizardDialog): ...@@ -66,19 +66,20 @@ class LetterWizardDialogImpl(LetterWizardDialog):
self.NormPaths = [] self.NormPaths = []
@classmethod @classmethod
def main(self, args): def main(self):
ConnectStr = \ #Call the wizard remotely(see README)
"uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext"
xLocMSF = None
try: try:
ConnectStr = \
"uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext"
xLocMSF = Desktop.connect(ConnectStr) xLocMSF = Desktop.connect(ConnectStr)
except Exception, e: lw = LetterWizardDialogImpl(xLocMSF)
traceback.print_exc() lw.startWizard(xLocMSF)
except Exception as e:
lw = LetterWizardDialogImpl(xLocMSF) print ("Wizard failure exception " + str(type(e)) +
lw.startWizard(xLocMSF, None) " message " + str(e) + " args " + str(e.args) +
traceback.format_exc())
def startWizard(self, xMSF, CurPropertyValue):
def startWizard(self, xMSF):
self.running = True self.running = True
try: try:
#Number of steps on WizardDialog #Number of steps on WizardDialog
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment