summaryrefslogtreecommitdiff
path: root/passlib/handlers/mssql.py
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2012-05-02 01:23:13 -0400
committerEli Collins <elic@assurancetechnologies.com>2012-05-02 01:23:13 -0400
commit9ab3cc675bb3fde85ab319716942ea1cc4693a4f (patch)
tree2a2378fb996701c348ea66821544adbaed00d62f /passlib/handlers/mssql.py
parent7b5c3f883a65e57dd5723b75da34059bea272909 (diff)
downloadpasslib-9ab3cc675bb3fde85ab319716942ea1cc4693a4f.tar.gz
forgot to document the relaxed=True keyword, and the strict-parameters policy.
Diffstat (limited to 'passlib/handlers/mssql.py')
-rw-r--r--passlib/handlers/mssql.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/passlib/handlers/mssql.py b/passlib/handlers/mssql.py
index 97cc0cc..359d45a 100644
--- a/passlib/handlers/mssql.py
+++ b/passlib/handlers/mssql.py
@@ -112,6 +112,14 @@ class mssql2000(uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler):
Optional salt string.
If not specified, one will be autogenerated (this is recommended).
If specified, it must be 4 bytes in length.
+
+ :type relaxed: bool
+ :param relaxed:
+ By default, providing an invalid value for one of the other
+ keywords will result in a :exc:`ValueError`. If ``relaxed=True``,
+ and the error can be corrected, a :exc:`~passlib.exc.PasslibHashWarning`
+ will be issued instead. Correctable errors include
+ ``salt`` strings that are too long.
"""
#=========================================================
#algorithm information
@@ -182,6 +190,14 @@ class mssql2005(uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler):
Optional salt string.
If not specified, one will be autogenerated (this is recommended).
If specified, it must be 4 bytes in length.
+
+ :type relaxed: bool
+ :param relaxed:
+ By default, providing an invalid value for one of the other
+ keywords will result in a :exc:`ValueError`. If ``relaxed=True``,
+ and the error can be corrected, a :exc:`~passlib.exc.PasslibHashWarning`
+ will be issued instead. Correctable errors include
+ ``salt`` strings that are too long.
"""
#=========================================================
#algorithm information