~syleam/openobject-library/2.0

« back to all changes in this revision

Viewing changes to example/object_interractive_mode.py

  • Committer: Christophe Chauvet
  • Date: 2011-12-07 13:26:56 UTC
  • mfrom: (67.1.8)
  • Revision ID: git-v1:1567508e6e20df797fea357b63cf1842a5d98540
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
##############################################################################
4
4
#
5
5
#    OpenObject Library
6
 
#    Copyright (C) 2009 Syleam (<http://syleam.fr>). Christophe Chauvet 
 
6
#    Copyright (C) 2009 Syleam (<http://syleam.fr>). Christophe Chauvet
7
7
#                  All Rights Reserved
8
8
#
9
9
#    This program is free software: you can redistribute it and/or modify
51
51
 
52
52
try:
53
53
    cnx = Connection(
54
 
        server=opts.server, 
55
 
        dbname=opts.dbname, 
56
 
        login=opts.user, 
57
 
        password=opts.passwd, 
 
54
        server=opts.server,
 
55
        dbname=opts.dbname,
 
56
        login=opts.user,
 
57
        password=opts.passwd,
58
58
        port=opts.port)
59
59
except Exception, e:
60
60
    print '%s' % str(e)