equal
deleted
inserted
replaced
109 def create(request, page_name=None, template=DEF_DOCS_CREATE_TMPL): |
109 def create(request, page_name=None, template=DEF_DOCS_CREATE_TMPL): |
110 """View to create a new Document entity. |
110 """View to create a new Document entity. |
111 |
111 |
112 Args: |
112 Args: |
113 request: the standard django request object |
113 request: the standard django request object |
114 page: a soc.logic.site.page.Page object which is abstraction that combines |
114 page_name: the page name displayed in templates as page and header title |
115 a Django view with sidebar menu info |
|
116 template: the "sibling" template (or a search list of such templates) |
115 template: the "sibling" template (or a search list of such templates) |
117 from which to construct the public.html template name (or names) |
116 from which to construct the public.html template name (or names) |
118 |
117 |
119 Returns: |
118 Returns: |
120 A subclass of django.http.HttpResponse which either contains the form to |
119 A subclass of django.http.HttpResponse which either contains the form to |
172 template=DEF_DOCS_EDIT_TMPL): |
171 template=DEF_DOCS_EDIT_TMPL): |
173 """View to modify the properties of a Document Model entity. |
172 """View to modify the properties of a Document Model entity. |
174 |
173 |
175 Args: |
174 Args: |
176 request: the standard django request object |
175 request: the standard django request object |
177 page: a soc.logic.site.page.Page object which is abstraction that combines |
176 page_name: the page name displayed in templates as page and header title |
178 a Django view with sidebar menu info |
|
179 partial_path: the Document's site-unique "path" extracted from the URL, |
177 partial_path: the Document's site-unique "path" extracted from the URL, |
180 minus the trailing link_name |
178 minus the trailing link_name |
181 link_name: the last portion of the Document's site-unique "path" |
179 link_name: the last portion of the Document's site-unique "path" |
182 extracted from the URL |
180 extracted from the URL |
183 template: the "sibling" template (or a search list of such templates) |
181 template: the "sibling" template (or a search list of such templates) |
281 template=DEF_DOCS_EDIT_TMPL): |
279 template=DEF_DOCS_EDIT_TMPL): |
282 """Request handler to delete Document Model entity. |
280 """Request handler to delete Document Model entity. |
283 |
281 |
284 Args: |
282 Args: |
285 request: the standard django request object |
283 request: the standard django request object |
286 page: a soc.logic.site.page.Page object which is abstraction that combines |
284 page_name: the page name displayed in templates as page and header title |
287 a Django view with sidebar menu info |
|
288 partial_path: the Document's site-unique "path" extracted from the URL, |
285 partial_path: the Document's site-unique "path" extracted from the URL, |
289 minus the trailing link_name |
286 minus the trailing link_name |
290 link_name: the last portion of the Document's site-unique "path" |
287 link_name: the last portion of the Document's site-unique "path" |
291 extracted from the URL |
288 extracted from the URL |
292 template: the "sibling" template (or a search list of such templates) |
289 template: the "sibling" template (or a search list of such templates) |