app/soc/logic/models/document.py
changeset 1517 a467d13e34ea
parent 1419 5d0f80ad7b9f
child 1594 b80bf089d5f7
equal deleted inserted replaced
1516:8df06dc877aa 1517:a467d13e34ea
    59     """See base.Logic.getKeyFieldNames.
    59     """See base.Logic.getKeyFieldNames.
    60     """
    60     """
    61 
    61 
    62     return ['prefix', 'scope_path', 'link_id']
    62     return ['prefix', 'scope_path', 'link_id']
    63 
    63 
    64   def _updateField(self, entity, name, value):
    64   def _updateField(self, entity, entity_properties, name):
    65     """Special logic for role. If state changes to active we flush the sidebar.
    65     """Special logic for role. If state changes to active we flush the sidebar.
    66     """
    66     """
       
    67 
       
    68     value = entity_properties[name]
    67 
    69 
    68     if (name == 'is_featured') and (entity.is_featured != value):
    70     if (name == 'is_featured') and (entity.is_featured != value):
    69       sidebar.flush()
    71       sidebar.flush()
    70 
    72 
    71     home_for = entity.home_for
    73     home_for = entity.home_for