Andy McKay

Andy McKay works at Clearwind Consulting
Email: andy@clearwind.ca
Twitter: @andymckay
RSS feed.

Plone 3 tiny changes #2

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.