[Kss-devel] Question about setting status messages in KSS event

Jeroen Vloothuis jeroen.vloothuis at xs4all.nl
Fri Dec 7 08:41:29 CET 2007


Alec Mitchell wrote:
> Hi guys,
>
> I'm trying to fix an issue with CMFEditions where files that are too
> large trigger a segfault or recursion error when versioned.  I've got
> a fix in place in CMFEditions, that raises a special error under these
> circumstances.  The ui scripts catch the error and add a status
> message indicating that versioning could not happen.  However, this
> needs to work for the inline-edit auto-versioning as well.  I have
> something working, but it currently stomps the default portal message
> when saving the file.  Is there an alternative to
> `plonecommands.issuePortalMessage` that allows multiple messages to
> coexist, or will I have to use a special message that indicates that
> the file was updated, but that no versioning was performed.
>   
I am not familiar with everything in the Plone commandset but you could 
use something from core:
*
*insertHTMLAsFirstChild*

*This would mean you would have to generate your own HTML snippet (but 
you could probably reuse the template for that).


More information about the Kss-devel mailing list