summaryrefslogtreecommitdiff
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
authorbwarsaw2002-02-23 06:53:53 +0000
committerbwarsaw2002-02-23 06:53:53 +0000
commite4622f59e317754e6f22faae45570e71358f6104 (patch)
tree4cf50b9ec58a1d7a63812f82c2ed956b6b9b7c73 /Mailman/Utils.py
parent06dc243c44509f968a88dec8dc7a16c7ab24cfa9 (diff)
downloadmailman-e4622f59e317754e6f22faae45570e71358f6104.tar.gz
mailman-e4622f59e317754e6f22faae45570e71358f6104.tar.zst
mailman-e4622f59e317754e6f22faae45570e71358f6104.zip
handle_form(): We break the handling of the header and footer
attributes into a special method which does some sanity checking on the interpolation strings. First, it checks to see if we're using the new experimental $-strings, and then depending on the style of interpolation being used, it extracts the identifiers (variables) in the string and compares them against a known valid list. Any invalid variables are flagged and the changes are discarded. If the user simply left off a trailing `s' (as in %(foo)s), then this can be corrected, but a warning is still printed. Note: In NonDigest.py we're using a module level function which is imported by Digest.py's HandleForm(). Makes it convenient to share code, but this should really be refactored along with Autoresponse.py's HandleForm().
Diffstat (limited to 'Mailman/Utils.py')
0 files changed, 0 insertions, 0 deletions