equal
deleted
inserted
replaced
450 context: the context dictionary that will be provided to django |
450 context: the context dictionary that will be provided to django |
451 seed: if no entity is provided, the initial values for the new entity |
451 seed: if no entity is provided, the initial values for the new entity |
452 params: required, a dict with params for this View |
452 params: required, a dict with params for this View |
453 """ |
453 """ |
454 |
454 |
455 logic = params['logic'] |
455 # logic = params['logic'] |
456 suffix = entity.key().id_or_name() if entity else None |
456 suffix = entity.key().id_or_name() if entity else None |
457 |
457 |
458 # remove the params from the request, this is relevant only if |
458 # remove the params from the request, this is relevant only if |
459 # someone bookmarked a POST page. |
459 # someone bookmarked a POST page. |
460 is_self_referrer = requests.isReferrerSelf( |
460 is_self_referrer = requests.isReferrerSelf( |
888 specified entity. |
888 specified entity. |
889 create_template: similar to edit_template, but is used when |
889 create_template: similar to edit_template, but is used when |
890 there is no existing entity. |
890 there is no existing entity. |
891 """ |
891 """ |
892 |
892 |
893 logic = params['logic'] |
893 # logic = params['logic'] |
894 suffix = entity.key().id_or_name() if entity else None |
894 suffix = entity.key().id_or_name() if entity else None |
895 |
895 |
896 context['form'] = form |
896 context['form'] = form |
897 context['entity'] = entity |
897 context['entity'] = entity |
898 context['entity_suffix'] = suffix |
898 context['entity_suffix'] = suffix |