app/soc/views/models/document.py
changeset 1805 7204ec5ead23
parent 1682 242ca517c340
child 1813 5cc9e055a818
equal deleted inserted replaced
1804:e151c2039a98 1805:7204ec5ead23
    65     new_params['name'] = "Document"
    65     new_params['name'] = "Document"
    66     new_params['pickable'] = True
    66     new_params['pickable'] = True
    67 
    67 
    68     new_params['export_content_type'] = 'text/text'
    68     new_params['export_content_type'] = 'text/text'
    69     new_params['export_extension'] = '.html'
    69     new_params['export_extension'] = '.html'
       
    70     new_params['export_function'] = lambda x: (x.content, x.link_id)
    70     new_params['delete_redirect'] = '/'
    71     new_params['delete_redirect'] = '/'
    71 
    72 
    72     new_params['no_create_raw'] = True
    73     new_params['no_create_raw'] = True
    73     new_params['no_create_with_scope'] = True
    74     new_params['no_create_with_scope'] = True
    74     new_params['no_create_with_key_fields'] = True
    75     new_params['no_create_with_key_fields'] = True