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

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.