From f0a4bbcff75246529cd7a9cc313381e56fdf1af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 7 Mar 2014 19:38:01 +0100 Subject: [PATCH] Remove Sha field and add password widget issue3713 review3791003 --- CHANGELOG | 2 + doc/ref/models/fields.rst | 9 - trytond/ir/ui/form.rnc | 2 +- trytond/ir/ui/form.rng | 2 +- trytond/res/view/user_form.xml | 2 +- trytond/res/view/user_form_preferences.xml | 2 +- trytond/tests/__init__.py | 4 - trytond/tests/export_data.py | 1 - trytond/tests/import_data.py | 8 +- trytond/tests/test.py | 26 --- trytond/tests/test_exportdata.py | 13 -- trytond/tests/test_fields.py | 194 --------------------- trytond/tests/test_importdata.py | 16 -- 13 files changed, 7 insertions(+), 274 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index bd410367ed..00b92b66ee 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +* Remove Sha field +* Add password widget * Add Len to PYSON * Use bcrypt to hash password if possible * Use a sequence of ids, values to set fields diff --git a/doc/ref/models/fields.rst b/doc/ref/models/fields.rst index 702c60d051..62af938749 100644 --- a/doc/ref/models/fields.rst +++ b/doc/ref/models/fields.rst @@ -257,15 +257,6 @@ A single line string field. ComboboxEntry in the client. The set of field names could be filled by using the decorator :meth:`depends`. -Sha ---- - -.. class:: Sha(string[, \**options]) - -A string field which value will be stored with a `secure hash algorithm`_. - -.. _`secure hash algorithm`: http://en.wikipedia.org/wiki/Secure_Hash_Algorithm - Text ---- diff --git a/trytond/ir/ui/form.rnc b/trytond/ir/ui/form.rnc index 2c58352ec9..03c23fc373 100644 --- a/trytond/ir/ui/form.rnc +++ b/trytond/ir/ui/form.rnc @@ -48,7 +48,7 @@ attlist.field &= | "integer" | "selection" | "char" - | "sha" + | "password" | "float_time" | "boolean" | "reference" diff --git a/trytond/ir/ui/form.rng b/trytond/ir/ui/form.rng index cb0d1aec0d..306de5ef0d 100644 --- a/trytond/ir/ui/form.rng +++ b/trytond/ir/ui/form.rng @@ -147,7 +147,7 @@ integer selection char - sha + password float_time boolean reference diff --git a/trytond/res/view/user_form.xml b/trytond/res/view/user_form.xml index 7a12cc70c7..629ff8291f 100644 --- a/trytond/res/view/user_form.xml +++ b/trytond/res/view/user_form.xml @@ -11,7 +11,7 @@ this repository contains the full copyright notices and license terms. -->