564
560
property_cache.subscriptions.append(sub)
565
561
property_cache.subscriptions.sort(
566
562
key=lambda sub: sub.person.displayname)
571
567
"""See ISpecification."""
572
568
# see if a relevant subscription exists, and if so, delete it
575
569
for sub in self.subscriptions:
576
570
if sub.person.id == person.id:
582
571
get_property_cache(self).subscriptions.remove(sub)
583
572
SpecificationSubscription.delete(sub.id)