Am 31.08.2011 02:32 schrieb Sean DiZazzo:
I finally figured out that I could customize the flash() css by
setting flash.static_template in my controllers.
You can customize the flash *HTML* by setting flash.static_template, but
this is rarely needed. To customize the *CSS*, you just have to add css
rules for "#flash" and maybe different rules for "#flash .info", "#flash
.warning" and "#flash .error" classes etc. as you like.
> It works great...except for when flash messages are created by the
> predicates. Unfortunately, the predicate.has_permission() function,
> does not accept a real flash object, so it must be creating it
> somewhere along the way with a hard-coded value.
Yes, the repoze.what authorization errors are hardcoded with 'error' or
'warning' status class. Other authorization errors use the status
attribute of the erros instance.
-- Christoph
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en.