Changeset 49254 for CPS4/products/CPSDocument
- Timestamp:
- 09/28/06 19:13:55 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
CPS4/products/CPSDocument/trunk/skins/cps_document/cpsdocument_edit.py
r48434 r49254 3 3 """ 4 4 Called when a document form is posted. 5 6 If 'doc' parameter is not None, use it instead of context document. 5 7 6 8 Validates data, then: … … 9 11 10 12 - if there's an error, puts data in session and redirects to edit form. 13 14 If 'redirect' parameter is False, no redirection is done: validation result, 15 datastructure are returned. 11 16 12 17 A form uid is propagated during the redirect to uniquely identify the … … 18 23 19 24 # Until ajax posts directly to its own script... 20 if 'ajax_edit' in REQUEST.form: 21 return context.cpsdocument_edit_ajax(REQUEST, cluster=cluster) 22 23 # Check flexible controls 24 context.editLayouts(REQUEST=REQUEST) 25 # XXX AT: disabled til ajax works for capsule docs 26 #if 'ajax_edit' in REQUEST.form: 27 # return context.cpsdocument_edit_ajax(REQUEST, cluster=cluster) 25 28 26 29 # Validate the document and write it if it's valid … … 52 55 REQUEST.RESPONSE.redirect(url) 53 56 else: 54 return psm57 return is_valid, ds
