nxshell - problem with session EventObject related methods

Started by suphu, September 24, 2018, 04:23:54 PM

Previous topic - Next topic

suphu

Hi, I am coding in python using nxshell 2.2.8 and having problems retrieving EventObjects (need rows from table event_cfg)

    session.syncEventObjects()
AttributeError: 'org.netxms.client.NXCSession' object has no attribute 'syncEventObjects'

    events = session.getEventObjects()
AttributeError: 'org.netxms.client.NXCSession' object has no attribute 'getEventObjects'

    events = session.getCachedEventObjects()
AttributeError: 'org.netxms.client.NXCSession' object has no attribute 'getCachedEventObjects'

    event = session.findEventObjectByCode(1)
AttributeError: 'org.netxms.client.NXCSession' object has no attribute 'findEventObjectByCode'


Victor Kirhenshtein

Hi,

those methods was renamed in 3.0. For 2.2 branch, use syncEventTemplates, getCachedEventTemplates and findEventTemplateByCode.

Best regards,
Victor

suphu


Victor Kirhenshtein


Tatjana Dubrovica