[Sputnik-list] "Messages" section
Yuri Takhteyev
yuri at sims.berkeley.edu
Fri Mar 7 18:40:03 GMT+2 2008
> The attached patch changes the sputnik core to allow for a style
> content box called "messages". In order for a node to add messages to
> the standard wiki.show output, it simply uses the following syntax:
>
> node.messages = node.messages or {}
> table.insert(node.messages, "Some error/status message here")
Great. Now that we are at it, though, should we make the messages
typed ("error", "success", "warning") and make them compatible with
blueprint?
Blueprint provides classes ".notice", ".error" and ".success" and I
think they assume that each message is a paragraph or a div.
Blueprint makes sure they come out in appropriate colors.
> As for implementation details, the messages table could be created in
> the root prototype, but I more wanted to raise the idea than suggest a
> specific implementation. Is something like this reasonable and within
> the scope of something you'd be okay with?
Not sure what you mean with the root prototypes (you are not intending
to _store_ those messages, right?), but yes, this is something that I
want in the core - just haven't gotten around to implementing.
BTW, I heard back from Johan about the bug in the gitorious UI, and
added both you and Pierre as committers. For non-core stuff like the
luasql backend (or the blueprint templates), feel to commit as you
like. Same for obvious bugs in the core. Fore more substantial
changes, let's discuss first for now. Sérgio, you want to be in on
the fun?
- yuri
--
http://sputnik.freewisdom.org/
More information about the Sputnik-list
mailing list