app/soc/views/models/base.py
changeset 576 6614d3f545b7
parent 573 1b37588c4922
child 586 a4a36b06a870
equal deleted inserted replaced
575:ba4a7e90139d 576:6614d3f545b7
   502     context['entity_type'] = params['name']
   502     context['entity_type'] = params['name']
   503     context['entity_type_plural'] = params['name_plural']
   503     context['entity_type_plural'] = params['name_plural']
   504     context['entity_type_short'] = params['name_short']
   504     context['entity_type_short'] = params['name_short']
   505     context['entity_type_url'] = params['url_name']
   505     context['entity_type_url'] = params['url_name']
   506 
   506 
   507     template = params['edit_template']
   507     if entity:
       
   508       template = params['edit_template']
       
   509     else:
       
   510       template = params['create_template']
   508 
   511 
   509     return helper.responses.respond(request, template, context)
   512     return helper.responses.respond(request, template, context)
   510 
   513 
   511   def checkAccess(self, access_type, request, rights=None):
   514   def checkAccess(self, access_type, request, rights=None):
   512     """Runs all the defined checks for the specified type
   515     """Runs all the defined checks for the specified type