Hi Everybody,

Hope someone can point me some direction...

I got python linking to lotus notes, under Eclipse IDE. The code is:

import pythoncom
import pywintypes
from win32com.client import Dispatch
session=Dispatch("Lotus.NotesSession")
session

print pythoncom.CreateGuid()

try:
    session.Initialize("password")
    db = session.getDatabase("local", "C:\Program
Files\lotus\notes\data\mydata.nsf")

    agent=db.getAgent("($All)")
    doc = db.CreateDocument()
    view = db.GetView("($All)")
    doc = view.getFirstDocument()

    testvar = doc.getItemValue("($All)")

except pywintypes.com_error: raise

but the compiler gives me the error:

".nsf has not been opened yet"

Any suggestion? Thanks. ThreaderSlash
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to