app/soc/views/models/timeline.py
changeset 1430 ff8cc6b15e6a
parent 1343 4ba39392c854
child 1451 ef134d062b83
equal deleted inserted replaced
1429:cfa0c3f2dc19 1430:ff8cc6b15e6a
    62                   'soc.views.models.%(module_name)s.edit', 
    62                   'soc.views.models.%(module_name)s.edit', 
    63                   "Edit %(name_short)s")]
    63                   "Edit %(name_short)s")]
    64 
    64 
    65     new_params['django_patterns_defaults'] = patterns
    65     new_params['django_patterns_defaults'] = patterns
    66 
    66 
    67     new_params['edit_dynafields'] = []
    67     new_params['edit_dynaproperties'] = []
    68 
    68 
    69     params = dicts.merge(params, new_params)
    69     params = dicts.merge(params, new_params)
    70 
    70 
    71     super(View, self).__init__(params=params)
    71     super(View, self).__init__(params=params)
    72 
    72 
    83       create_form = params_helper.getCreateForm(self._params, logic_value.getModel())
    83       create_form = params_helper.getCreateForm(self._params, logic_value.getModel())
    84       edit_form = dynaform.extendDynaForm(
    84       edit_form = dynaform.extendDynaForm(
    85         dynaform = create_form,
    85         dynaform = create_form,
    86         dynainclude = self._params['edit_dynainclude'],
    86         dynainclude = self._params['edit_dynainclude'],
    87         dynaexclude = self._params['edit_dynaexclude'],
    87         dynaexclude = self._params['edit_dynaexclude'],
    88         dynafields = fields,
    88         dynaproperties = fields,
    89         )
    89         )
    90         
    90         
    91       self._params['edit_form_%s' % name] = edit_form
    91       self._params['edit_form_%s' % name] = edit_form
    92 
    92 
    93   def edit(self, request, access_type,
    93   def edit(self, request, access_type,