app/soc/views/models/base.py
changeset 407 3cf5630d86d1
parent 403 d3e545a8bd26
child 409 9d24850db88f
equal deleted inserted replaced
406:cc603a815cad 407:3cf5630d86d1
   350       entity: the entity that is used
   350       entity: the entity that is used
   351       context: the context to be used
   351       context: the context to be used
   352       form: the form that will be used
   352       form: the form that will be used
   353     """
   353     """
   354 
   354 
   355     if entity:
   355     suffix = self._logic.constructKeyNameSuffix(entity)
   356       suffix = self._logic.constructKeyNameSuffix(entity)
       
   357     else:
       
   358       suffix = None
       
   359 
   356 
   360     context['form'] = form
   357     context['form'] = form
   361     context['entity'] = entity
   358     context['entity'] = entity
   362     context['entity_suffix'] = suffix
   359     context['entity_suffix'] = suffix
   363     context['entity_type'] = self._params['name']
   360     context['entity_type'] = self._params['name']