On Wed, Jun 2, 2010 at 06:54, hamdy.a.farag <hamdy.a.fa...@inbox.com> wrote:
> I also suggest another modification, to have a global messaging system
> in any application
> in db.py for the welcome scaffolding application, I suggest adding:
>
> from gluon.storage import Messages
> messages = Messages(T)
>
> Now a developer is free to set all his messages using the messages
> reference and his messages will be translated on the fly
>
> so I can do :
> messages.hello_messag = 'Hello'
>
> and use it anywhere in my application
>
> This is very useful because in an environment where many developers
> work on the same application, they need a unified messages to use
> otherwise application will end up with many many similar messages
>
> in fact hello application can have another new model named messages.py
> with :
> from gluon.storage import Messages
> messages = Messages(T)
>
> and developers can set/check message from there

I think it is something special to you. Even with many developers on
one project we use T('string') in all messages and it work...

-- 
Álvaro Justen - Turicas
 http://blog.justen.eng.br/
 21 9898-0141

Reply via email to