Chilkat2-Python
Chilkat2-Python
Transition from MailMan.GetUidls to MailMan.FetchUidls
Provides instructions for replacing deprecated GetUidls method calls with FetchUidls.Chilkat Chilkat2-Python Downloads
import sys
import chilkat2
success = False
mailman = chilkat2.MailMan()
# ...
# ...
# ------------------------------------------------------------------------
# The GetUidls method is deprecated:
# sa is a CkStringArray
sa = mailman.GetUidls()
if (mailman.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 = chilkat2.StringTable()
success = mailman.FetchUidls(st)
if (success == False):
print(mailman.LastErrorText)
sys.exit()