summaryrefslogtreecommitdiff
path: root/pyuno/demo/biblioaccess.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyuno/demo/biblioaccess.py')
-rw-r--r--pyuno/demo/biblioaccess.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyuno/demo/biblioaccess.py b/pyuno/demo/biblioaccess.py
index aec8e07d1f14..27b73e126e57 100644
--- a/pyuno/demo/biblioaccess.py
+++ b/pyuno/demo/biblioaccess.py
@@ -26,9 +26,9 @@ from com.sun.star.sdb.CommandType import COMMAND
def main():
connectionString = "socket,host=localhost,port=2002"
-
+
url = "uno:"+connectionString + ";urp;StarOffice.ComponentContext"
-
+
localCtx = uno.getComponentContext()
localSmgr = localCtx.ServiceManager
resolver = localSmgr.createInstanceWithContext(
@@ -43,12 +43,12 @@ def main():
rowset.execute();
- print "Identifier\tAuthor"
+ print("Identifier\tAuthor")
id = rowset.findColumn( "IDENTIFIER" )
author = rowset.findColumn( "AUTHOR" )
while rowset.next():
- print rowset.getString( id ) + "\t" + repr( rowset.getString( author ) )
+ print(rowset.getString( id ) + "\t" + repr( rowset.getString( author ) ))
rowset.dispose();