pywizards: Add README explaining how to call a wizard remotely

Change-Id: I5686dfb9fcac1ccc3d04cb260c1a532d13e7c31e
This commit is contained in:
Xisco Fauli 2012-10-15 20:01:49 +02:00
parent f2655f92c1
commit b617e84227
2 changed files with 21 additions and 2 deletions

View file

@ -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()

View file

@ -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"