(CkPython) Transition from MailMan.GetUidls to MailMan.FetchUidls
Provides instructions for replacing deprecated GetUidls method calls with FetchUidls. Note: This example requires Chilkat v11.0.0 or greater.
import sys
import chilkat
mailman = chilkat.CkMailMan()
# ...
# ...
# ------------------------------------------------------------------------
# The GetUidls method is deprecated:
# sa is a CkStringArray
sa = mailman.GetUidls()
if (mailman.get_LastMethodSuccess() == False):
print(mailman.lastErrorText())
sys.exit()
# ...
# ...
# ------------------------------------------------------------------------
# Do the equivalent using FetchUidls.
# Your application creates a new, empty StringTable object which is passed
# in the last argument and filled upon success.
st = chilkat.CkStringTable()
success = mailman.FetchUidls(st)
if (success == False):
print(mailman.lastErrorText())
sys.exit()
|