Commit 8f41ae4977e242b2d6f79157ef2c5f132cb54d1f

Authored by Conrad Vermeulen
1 parent 77130750

KTS-2529

"Test open office document extractor"
Fixed. Extractor script was not taking host and port correctly

Committed By: Conrad Vermeulen
Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7459 c91229c3-7414-0410-bfa2-8a42b809f60b
bin/openoffice/DocumentConverter.py
... ... @@ -80,7 +80,7 @@ def _unoProps(**args):
80 80  
81 81 class DocumentConverter:
82 82  
83   - def __init__(self, host=argv[3], port=argv[4]):
  83 + def __init__(self, host, port):
84 84 localContext = uno.getComponentContext()
85 85 resolver = localContext.ServiceManager.createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver", localContext)
86 86 try:
... ... @@ -133,7 +133,7 @@ if __name__ == "__main__":
133 133 exit(255)
134 134  
135 135 try:
136   - converter = DocumentConverter()
  136 + converter = DocumentConverter(argv[3],argv[4])
137 137 converter.convert(argv[1], argv[2])
138 138 except DocumentConversionException, exception:
139 139 print "ERROR! " + str(exception)
... ...