mailman  2.1.39
About: Mailman 2 - The GNU Mailing List Management System.
  Fossies Dox: mailman-2.1.39.tgz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Utils.py File Reference

Go to the source code of this file.

Classes

class  Mailman.Utils.OuterExit
 

Namespaces

namespace  Mailman
 
namespace  Mailman.Utils
 

Functions

def Mailman.Utils.list_exists (listname)
 
def Mailman.Utils.list_names ()
 
def Mailman.Utils.wrap (text, column=70, honor_leading_ws=True)
 
def Mailman.Utils.QuotePeriods (text)
 
def Mailman.Utils.ParseEmail (email)
 
def Mailman.Utils.LCDomain (addr)
 
def Mailman.Utils.ValidateEmail (s)
 
def Mailman.Utils.GetPathPieces (envar='PATH_INFO')
 
def Mailman.Utils.GetRequestMethod ()
 
def Mailman.Utils.ScriptURL (target, web_page_url=None, absolute=False)
 
def Mailman.Utils.GetPossibleMatchingAddrs (name)
 
def Mailman.Utils.List2Dict (L, foldcase=False)
 
def Mailman.Utils.UserFriendly_MakeRandomPassword (length)
 
def Mailman.Utils.Secure_MakeRandomPassword (length)
 
def Mailman.Utils.MakeRandomPassword (length=mm_cfg.MEMBER_PASSWORD_LENGTH)
 
def Mailman.Utils.GetRandomSeed ()
 
def Mailman.Utils.set_global_password (pw, siteadmin=True)
 
def Mailman.Utils.get_global_password (siteadmin=True)
 
def Mailman.Utils.check_global_password (response, siteadmin=True)
 
def Mailman.Utils.websafe (s, doubleescape=False)
 
def Mailman.Utils.nntpsplit (s)
 
def Mailman.Utils.ObscureEmail (addr, for_text=False)
 
def Mailman.Utils.UnobscureEmail (addr)
 
def Mailman.Utils.findtext (templatefile, dict=None, raw=False, lang=None, mlist=None)
 
def Mailman.Utils.maketext (templatefile, dict=None, raw=False, lang=None, mlist=None)
 
def Mailman.Utils.is_administrivia (msg)
 
def Mailman.Utils.GetRequestURI (fallback=None, escape=True)
 
def Mailman.Utils.reap (kids, func=None, once=False)
 
def Mailman.Utils.GetLanguageDescr (lang)
 
def Mailman.Utils.GetCharSet (lang)
 
def Mailman.Utils.GetDirection (lang)
 
def Mailman.Utils.IsLanguage (lang)
 
def Mailman.Utils.get_domain ()
 
def Mailman.Utils.get_site_email (hostname=None, extra=None)
 
def Mailman.Utils.unique_message_id (mlist)
 
def Mailman.Utils.midnight (date=None)
 
def Mailman.Utils.to_dollar (s)
 
def Mailman.Utils.to_percent (s)
 
def Mailman.Utils.dollar_identifiers (s)
 
def Mailman.Utils.percent_identifiers (s)
 
def Mailman.Utils.canonstr (s, lang=None)
 
def Mailman.Utils.uncanonstr (s, lang=None)
 
def Mailman.Utils.uquote (s)
 
def Mailman.Utils.oneline (s, cset)
 
def Mailman.Utils.strip_verbose_pattern (pattern)
 

Variables

string Mailman.Utils._lower = 'abcdefghijklmnopqrstuvwxyz'
 
string Mailman.Utils.ascii_letters = _lower + _lower.upper()
 
 Mailman.Utils.md5_new = hashlib.md5
 
 Mailman.Utils.sha_new = hashlib.sha1
 
int Mailman.Utils.True = 1
 
int Mailman.Utils.False = 0
 
bool Mailman.Utils.dns_resolver = True
 
bool Mailman.Utils.have_ipaddress = True
 
string Mailman.Utils.EMPTYSTRING = ''
 
string Mailman.Utils.UEMPTYSTRING = u''
 
string Mailman.Utils.CR = '\r'
 
string Mailman.Utils.NL = '\n'
 
string Mailman.Utils.DOT = '.'
 
string Mailman.Utils.IDENTCHARS = ascii_letters + digits + '_'
 
 Mailman.Utils.cre = re.compile(r'%\‍(([_a-z]\w*?)\‍)s?', re.IGNORECASE)
 
 Mailman.Utils.dre = re.compile(r'(\${2})|\$([_a-z]\w*)|\${([_a-z]\w*)}', re.IGNORECASE)
 
 Mailman.Utils._badchars = re.compile(r'[][()<>|:;^,\\"\000-\037\177-\377]')
 
 Mailman.Utils._valid_domain = re.compile('[-a-z0-9]', re.IGNORECASE)
 
 Mailman.Utils.CRNLpat = re.compile(r'[^\x21-\x7e]')
 
tuple Mailman.Utils._vowels = ('a', 'e', 'i', 'o', 'u')
 
tuple Mailman.Utils._consonants
 
list Mailman.Utils._syllables = []
 
 Mailman.Utils._ampre = re.compile('&amp;((?:#[0-9]+|[a-z]+);)', re.IGNORECASE)
 
dictionary Mailman.Utils.ADMINDATA
 
int Mailman.Utils._serial = 0