lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 1.4-13-g352aa8a

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum branch master updated. 1.4-13-g352aa8a



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-stdnum".

The branch, master has been updated
       via  352aa8aef4b60456fba02a52460e9b8c6462b2fb (commit)
      from  49db5531efb72708a88e2b809009c6734e0fac4c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://arthurdejong.org/git/python-stdnum/commit/?id=352aa8aef4b60456fba02a52460e9b8c6462b2fb

commit 352aa8aef4b60456fba02a52460e9b8c6462b2fb
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Sat Sep 10 23:29:34 2016 +0200

    Add reference to Referencia Catastral implementation

diff --git a/stdnum/es/referenciacatastral.py b/stdnum/es/referenciacatastral.py
index 68c0993..fefb108 100644
--- a/stdnum/es/referenciacatastral.py
+++ b/stdnum/es/referenciacatastral.py
@@ -78,6 +78,10 @@ def format(number):
     ])
 
 
+# The check digit implementation is based on the Javascript
+# implementation by Vicente Sancho that can be found at
+# http://trellat.es/validar-la-referencia-catastral-en-javascript/
+
 def _check_digit(number):
     """Calculate a single check digit on the provided part of the number."""
     weights = (13, 15, 12, 5, 4, 17, 9, 21, 3, 7, 1)

-----------------------------------------------------------------------

Summary of changes:
 stdnum/es/referenciacatastral.py | 4 ++++
 1 file changed, 4 insertions(+)


hooks/post-receive
-- 
python-stdnum
-- 
To unsubscribe send an email to
python-stdnum-commits-unsubscribe@lists.arthurdejong.org or see
https://lists.arthurdejong.org/python-stdnum-commits/