From b617e84227ca07639f18c4ad53c7f8c3a93a794a Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Mon, 15 Oct 2012 20:01:49 +0200 Subject: pywizards: Add README explaining how to call a wizard remotely Change-Id: I5686dfb9fcac1ccc3d04cb260c1a532d13e7c31e --- wizards/com/sun/star/wizards/README | 19 +++++++++++++++++++ .../com/sun/star/wizards/fax/FaxWizardDialogImpl.py | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 wizards/com/sun/star/wizards/README (limited to 'wizards') 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" -- cgit