Re: Custom postback data handler for widgets
Mikko Ohtamaa <mikko-75aZqqp77KCaMPzRcYMCawC/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Organization | Red Innovation |
| Message-ID | <[email protected]> |
Mikko Ohtamaa wrote: > Archetypes has hardcoded postback data saving for widgets in > session_save_form.py. This is very no no, since custom widgets cannot > handle their postback data themselves. KeywordWidgets is hardcoded to > session_save_form.py. This is unbeliveable. Only with Plone, one can spend 8 hours to make patch, make unit tests for it and test the patch just to notice he/she has been patching the wrong part of the code. Looks like I shot myself to foot with Plone again. session_save_form.py was refered by session_restore_value.py, in comment: "Return field value previously stored on session by session_save_form". session_restore_value.py was referred by field.pt: "value python:widget.postback and request.get(fieldName, here.session_restore_value(fieldName, value)) or value;". Logical decision: session_save_form handles postback data saving. However, looks like session_save_form doesn't actually handle saving postback data. session_save_form was only referred by add_reference.py. I still don't know where the actual postback data is saved. My next lucky guess is content_edit_impl.py. Forget this patch. I'll rework it. Before I am going to look this matter further, either my forehead or wall next to me will break. You can contact me moo-iot6NhLMLXXfFC+sl342H22ftZ6Up/[email protected] ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642