common/mixins.py
branchstable
changeset 3926 0585694c1896
parent 3830 3b6bbb3a3c3e
child 3998 94cc7cad3d2d
child 4212 ab6573088b4a
equal deleted inserted replaced
3925:25d5830b9531 3926:0585694c1896
   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