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

Reply via email to