Andy McKay

Aug 24, 2007

Plone 3 tiny changes

Quite often in applications I've wanted to show just a warning or some information back to the user. In older Plone's there was one choice, that bright orange box that screamed "idiot!". Now you can give your status message a level and there will a suitably bold message.

addStatusMessage(_(u"Changes saved."), type='info')

Choices are: info, warning or error.