git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bc18d4
)
can now delete accounts that still have a pending verification
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 25 Jul 2011 18:07:34 +0000
(14:07 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Mon, 25 Jul 2011 18:07:34 +0000
(14:07 -0400)
PLC/Persons.py
patch
|
blob
|
history
diff --git
a/PLC/Persons.py
b/PLC/Persons.py
index
d5f1533
..
8da70ef
100644
(file)
--- 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)