summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2012-10-15 20:01:49 +0200
committerXisco Fauli <anistenis@gmail.com>2012-10-15 23:58:14 +0200
commitb617e84227ca07639f18c4ad53c7f8c3a93a794a (patch)
treef65257f18d12a6eded8bb82de559349ad32996ea /wizards/com/sun/star/wizards
parentf2655f92c193ce37aa76f2dd285d260d214f7d8c (diff)
pywizards: Add README explaining how to call a wizard remotely
Change-Id: I5686dfb9fcac1ccc3d04cb260c1a532d13e7c31e
Diffstat (limited to 'wizards/com/sun/star/wizards')
-rw-r--r--wizards/com/sun/star/wizards/README19
-rw-r--r--wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py4
2 files changed, 21 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/README b/wizards/com/sun/star/wizards/README
new file mode 100644
index 000000000000..473282f17dc8
--- /dev/null
+++ b/wizards/com/sun/star/wizards/README
@@ -0,0 +1,19 @@
+To call a wizard remotely you need to:
+
+-> For testing on core:
+ export URE_BOOTSTRAP="file:///home/'USER'/git/libo/install/program/fundamentalrc"
+ export PYTHONPATH=/home/'USER'/git/libo/install/program
+ #and run LibreOffice in listening mode:
+ ./soffice --"accept=socket,host=localhost,port=2002;urp;"
+
+-> For testing on installed LibreOffice:
+ export URE_BOOTSTRAP="file:///usr/lib/libreoffice/program/fundamentalrc"
+ export PYTHONPATH=/usr/lib/libreoffice/basis-link/program
+ #and run LibreOffice in listening mode:
+ soffice --"accept=socket,host=localhost,port=2002;urp;"
+
+-> Launch the wizard from wizards parent folder:
+ python
+ #Fax wizard
+ from wizards.fax.FaxWizardDialogImpl import FaxWizardDialogImpl
+ FaxWizardDialogImpl.main()
diff --git a/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py b/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py
index 9252d0db4eb9..c1a8e48b7419 100644
--- a/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py
+++ b/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py
@@ -67,8 +67,8 @@ class FaxWizardDialogImpl(FaxWizardDialog):
self.sTemplatePath = ""
@classmethod
- def main(self, args):
- #Call the wizard remotely
+ def main(self):
+ #Call the wizard remotely(see README)
try:
ConnectStr = \
"uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext"