VirtualMailManager/password.py
branchv0.6.x
changeset 464 7d4d79ff08d0
parent 461 cabdf94ec580
child 568 14abdd04ddf5
equal deleted inserted replaced
463:b175c9f62602 464:7d4d79ff08d0
   358     be empty.
   358     be empty.
   359     """
   359     """
   360     dcv = cfg_dget('misc.dovecot_version')
   360     dcv = cfg_dget('misc.dovecot_version')
   361     schemes = (k for (k, v) in _scheme_info.iteritems() if v[1] <= dcv)
   361     schemes = (k for (k, v) in _scheme_info.iteritems() if v[1] <= dcv)
   362     if dcv >= 0x10100a01:
   362     if dcv >= 0x10100a01:
   363         encodings = DEFAULT_B64[1:] + DEFAULT_HEX[1:]
   363         encodings = ('.B64', '.BASE64', '.HEX')
   364     else:
   364     else:
   365         encodings = ()
   365         encodings = ()
   366     return schemes, encodings
   366     return schemes, encodings
   367 
   367 
   368 
   368