From: Tony Mack Date: Mon, 25 Jul 2011 18:07:34 +0000 (-0400) Subject: can now delete accounts that still have a pending verification X-Git-Tag: plcapi-5.0-34~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=4d5ee5be90e7033c303b0e96e78141463d1ab032;p=plcapi.git can now delete accounts that still have a pending verification --- diff --git a/PLC/Persons.py b/PLC/Persons.py index d5f1533c..8da70ef2 100644 --- a/PLC/Persons.py +++ b/PLC/Persons.py @@ -359,6 +359,12 @@ class Person(Row): # Mark as deleted self['deleted'] = True + + # delete will fail if verification_expires exists and isn't validated + if 'verification_expires' in self: + self['verification_expires'] = \ + self.validate_verification_expires(self['verification_expires']) + # don't validate, so duplicates can be consistently removed self.sync(commit, validate=False)