common/registerers.py
branchtls-sprint
changeset 1263 01152fffd593
parent 1132 96752791c2b6
parent 1252 e782f333408b
equal deleted inserted replaced
1246:76b3cd5d4f31 1263:01152fffd593
    68         return self.vobject
    68         return self.vobject
    69     
    69     
    70     def equivalent(self, other):
    70     def equivalent(self, other):
    71         if use_interfaces(self.vobject) != use_interfaces(other):
    71         if use_interfaces(self.vobject) != use_interfaces(other):
    72             return False
    72             return False
       
    73         if getattr(self.vobject, 'require_groups', ()) != getattr(other, 'require_groups', ()):
       
    74             return False
    73         try:
    75         try:
    74             newaccepts = list(other.accepts)
    76             newaccepts = list(other.accepts)
    75             for etype in self.vobject.accepts:
    77             for etype in self.vobject.accepts:
    76                 try:
    78                 try:
    77                     newaccepts.remove(etype)
    79                     newaccepts.remove(etype)