Python problem accessing lotus notes

Discussion in 'Python' started by contex, Apr 17, 2015.

  1. contex

    contex

    Joined:
    Apr 17, 2015
    Messages:
    1
    Likes Received:
    0
    Hi all,

    i am using movpy for accessing lotus notes using python, i think i do all ok but it seems something is going wrong because i can't print any db title even if i've opened the .nsf file.

    My code:

    Code (Text):
    import win32com.client
    from win32com.client import Dispatch

    notesServer='Mail\wed\new\IT'
    notesFile= 'Apps\Mydb.nsf'
    notesPass    = 'mypass'

    session = Dispatch('Lotus.NotesSession')
    session.Initialize(notesPass)
    print "----------------"

    db = session.getDatabase(notesServer, notesFile)

    print db.Open
    print db.IsOpen
    print db.Title
    and this is what i get:

    ----------------
    <bound method CDispatch.Open of <COMObject <unknown>>>
    False

    Please can u help me?
    Luca
     
    contex, Apr 17, 2015
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bjorn Jensen
    Replies:
    0
    Views:
    1,500
    Bjorn Jensen
    Mar 22, 2005
  2. Murthy
    Replies:
    0
    Views:
    990
    Murthy
    Feb 21, 2005
  3. timanfaya/TSM@tsm.es
    Replies:
    0
    Views:
    582
    timanfaya/TSM@tsm.es
    May 18, 2004
  4. Sateesh

    Access lotus notes using Python

    Sateesh, May 23, 2005, in forum: Python
    Replies:
    13
    Views:
    6,664
    Dan Poirier
    May 25, 2005
  5. =?ISO-8859-2?Q?Grzegorz_=A6lusarek?=

    Python and Lotus Notes

    =?ISO-8859-2?Q?Grzegorz_=A6lusarek?=, Nov 2, 2005, in forum: Python
    Replies:
    5
    Views:
    10,813
    thakadu
    Nov 4, 2005
  6. SteveM
    Replies:
    5
    Views:
    1,975
    Mark Rae [MVP]
    Aug 28, 2007
  7. sweetpotatop@yahoo.com

    Accessing the Lotus Notes address book through LDAP

    sweetpotatop@yahoo.com, Oct 24, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    1,869
    sweetpotatop@yahoo.com
    Nov 6, 2007
  8. KDawg44
    Replies:
    1
    Views:
    807
    Mike Driscoll
    Jul 16, 2008
Loading...