ICustomerSites¶
- class ICustomerSites¶
Bases:
ISites- Summary:
A collection of ISite objects for a specific customer.
Wraps a COM object or another wrapper instance. Accepts: - A valid impact_object - An existing impact_com_wrapper_base-derived instance
- property count¶
Gets Count.
- Summary:
The number of items in this collection.
- Returns:
The value of Count.
- Return type:
count (int)
- assign(site)¶
- Summary:
Assigns a specific ISite to the list of customer sites.
- Remarks:
You must call do_update after one or more calls to Assign/Remove
- Parameters:
site (ISite) – The site to assign.
- by_key(key)¶
- Summary:
Retrieves a site by its key
- Parameters:
key (int) – Site key
- clear()¶
- Summary:
Clears all assigned sites from the list of customer sites.
- Remarks:
You do not need to call do_update after Clear. Any pending Assigns or Removes are discarded.
- do_update()¶
- Summary:
Commits changes made with Assign and Remove to the database.
- isNone()¶
Checks if the COM object is None. This is useful for determining if the wrapper has been initialized with a valid COM object.
- item(index)¶
- Summary:
Gets an ISite object with a specified name or index.
- Parameters:
index (any) – Specifies the name or index of the ISite object to get.
- refresh()¶
- Summary:
Refreshes the sites information from the database.
Examples