common/mixins.py
changeset 3998 94cc7cad3d2d
parent 3890 d7a270f50f54
parent 3926 0585694c1896
child 4023 eae23c40627a
equal deleted inserted replaced
3895:92ead039d3d0 3998:94cc7cad3d2d
   192         `allowed_massmail_keys` method.
   192         `allowed_massmail_keys` method.
   193         """
   193         """
   194         return dict( (attr, getattr(self, attr)) for attr in self.allowed_massmail_keys() )
   194         return dict( (attr, getattr(self, attr)) for attr in self.allowed_massmail_keys() )
   195 
   195 
   196 
   196 
   197 
   197 """pluggable mixins system: plug classes registered in MI_REL_TRIGGERS on entity
       
   198 classes which have the relation described by the dict's key.
       
   199 
       
   200 NOTE: pluggable mixins can't override any method of the 'explicit' user classes tree
       
   201 (eg without plugged classes). This includes bases Entity and AnyEntity classes.
       
   202 """
   198 MI_REL_TRIGGERS = {
   203 MI_REL_TRIGGERS = {
   199     ('primary_email',   'subject'): EmailableMixIn,
   204     ('primary_email',   'subject'): EmailableMixIn,
   200     ('use_email',   'subject'): EmailableMixIn,
   205     ('use_email',   'subject'): EmailableMixIn,
   201     }
   206     }
   202 
   207