[web2py] Re: small modification in the welcome application

2010-06-02 Thread hamdy.a.farag
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

Re: [web2py] Re: small modification in the welcome application

2010-06-02 Thread Álvaro Justen
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)

[web2py] Re: small modification in the welcome application

2010-06-02 Thread hamdy.a.farag
what about reusing messages in another applications ? can you guarantee that all your coworkers use the same typical string ? ex: error_message = T('warning, you're not authorized to access ...') another developer could do: error_message = T('you're not authorized to access this page') think of