Revision 29312dff6d96ac1c9bc18bf98de1d2e27a76c334 authored by David Douard on 19 May 2020, 14:04:30 UTC, committed by David Douard on 20 May 2020, 14:28:01 UTC
Simply add a BaseModel.anonymize() method. Default implementation returns
None, meaning the object is not anonymizable.

For Person, the method returns a Person whith hashed fullname (and unset
name and email).

For Revision and Release, the method returns an anonymized version of
the object, i.e. with instance of Person replaced by anonymized ones.
1 parent cce3036
History
File Mode Size
git-revhash -rwxr-xr-x 438 bytes
swh-hashtree -rwxr-xr-x 1.4 KB
swh-revhash -rwxr-xr-x 1.2 KB

back to top