RichDocument attachments and Lingaplone
Harald Friessnegger <harald.friessnegger-H84adUgip2a/3pe1ocb+swC/[email protected]> Tue, 09 May 2006 17:00:25 +0200
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Organization | Lovely Systems GmbH |
| Message-ID | <[email protected]> |
sometimes it's necessary to be able to add new imageattachments or fileattachments to translations of a richdocument. by default, the two fields displayImages and displayAttachments are languageIndependent which really is okay for most cases. however i think that conceptually it's a little wrong to couple the uploading of attachments to the field that defines if the attachments shall be shown in a box at the end of richdocument_view. i'm sure there is a good reason for this (that i don't know about yet). to be able to add attachments to translations i create a custom type that subclasses richdocument and register the formcontroller actions by using the nice methods martin provided in RichDocument.Extensions.utils i copy the two fields from RichDocument.schema and set languageIndependent to False. now i get the managementcontrols widgets in the edit view of the translated object. unfortunately the linguaplone controllerpagetemplate translate_item.cpt and the script translate_edit.cpy it calls after successful validation do not play well with richdocument at the moment. (uploading an imageattachments takes me to the objects view telling me that "my changes have been saved" - which simply is not true ;-) i think linguaplone has the limitation that it does not support custom editforms at the moment. but in this case maybe registering the addidional scripts richdocument provides to handle the data of the attachment managementcontrols somewhere in this chain too could do the job. please tell me what you think about this. is there a need for lingaplone to support custom edit_forms? should richdocument register fc actions to play well with linguaplone's edit view in case displayImages or displayAttachments is set not to be languageIndependent? should richdocument decouple displayAttachments and attachment managementcontrol? thanks in advance, fRiSi ------------------------------------------------------- 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