summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/letter
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2014-01-24 22:40:45 +0100
committerXisco Fauli <anistenis@gmail.com>2014-01-24 22:51:28 +0100
commit574773ac298153b97237b3432b601a83938eaf6b (patch)
tree0f764879f0bcf9960b83ad9d5f4258f4fffdb71b /wizards/com/sun/star/wizards/letter
parentacdfb2593564ea23d4bbb999856922568d7ab2c3 (diff)
pywizards: update callRemote methods
Change-Id: Id4a335b19f48738d0f2a02e3660e57701bbc7ef2
Diffstat (limited to 'wizards/com/sun/star/wizards/letter')
-rw-r--r--wizards/com/sun/star/wizards/letter/CallWizard.py16
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py14
2 files changed, 15 insertions, 15 deletions
diff --git a/wizards/com/sun/star/wizards/letter/CallWizard.py b/wizards/com/sun/star/wizards/letter/CallWizard.py
index f2b071e0cd1c..52b274e7de70 100644
--- a/wizards/com/sun/star/wizards/letter/CallWizard.py
+++ b/wizards/com/sun/star/wizards/letter/CallWizard.py
@@ -18,7 +18,7 @@
import unohelper
import traceback
-from .LetterWizardDialogImpl import LetterWizardDialogImpl
+from .LetterWizardDialogImpl import LetterWizardDialogImpl, Desktop
from com.sun.star.task import XJobExecutor
@@ -38,6 +38,20 @@ class CallWizard(unohelper.Base, XJobExecutor):
" message " + str(e) + " args " + str(e.args) +
traceback.format_exc())
+ @classmethod
+ def callRemote(self):
+ #Call the wizard remotely(see README)
+ try:
+ ConnectStr = \
+ "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext"
+ xLocMSF = Desktop.connect(ConnectStr)
+ lw = LetterWizardDialogImpl(xLocMSF)
+ lw.startWizard(xLocMSF)
+ except Exception as e:
+ print ("Wizard failure exception " + str(type(e)) +
+ " message " + str(e) + " args " + str(e.args) +
+ traceback.format_exc())
+
# pythonloader looks for a static g_ImplementationHelper variable
g_ImplementationHelper = unohelper.ImplementationHelper()
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
index 6560e52726d0..879a4d30fb2f 100644
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
+++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
@@ -67,20 +67,6 @@ class LetterWizardDialogImpl(LetterWizardDialog):
self.BusCompanyAddressReceiver = None
self.BusFooter = None
- @classmethod
- def main(self):
- #Call the wizard remotely(see README)
- try:
- ConnectStr = \
- "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext"
- xLocMSF = Desktop.connect(ConnectStr)
- lw = LetterWizardDialogImpl(xLocMSF)
- lw.startWizard(xLocMSF)
- except Exception as e:
- print ("Wizard failure exception " + str(type(e)) +
- " message " + str(e) + " args " + str(e.args) +
- traceback.format_exc())
-
def startWizard(self, xMSF):
self.running = True
try: