IPWorks EDI 2020 Python Edition

Questions / Feedback?

on_partner_directory Event

Fired before accessing partner.cfg of a trading partner.

Syntax

class AS2ProfileMgrPartnerDirectoryEventParams(object):
  @property
  def name() -> str: ...
  @property
  def directory() -> str: ...
  @directory.setter
  def directory(value) -> None: ...

# In class AS2ProfileMgr:
@property
def on_partner_directory() -> Callable[[AS2ProfileMgrPartnerDirectoryEventParams], None]: ...
@on_partner_directory.setter
def on_partner_directory(event_hook: Callable[[AS2ProfileMgrPartnerDirectoryEventParams], None]) -> None: ...

Remarks

This event is fired every time partner.cfg needs to be accessed i.e when load_profile or get_tp_info are invoked with partner name not being "self". The Name provides the partner name and Directory indicates the directory in which partner profile is expected. Setting Directory to a different path will make the component look for partner.cfg in that directory. Note: PartnerDirectory event is not fired when list_partners is invoked.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 Python Edition - Version 20.0 [Build 8203]