from gluon import current

class MyClass(object):
    def __init__(self):
        self.T = current.T

    def mymethod(self):
        return self.T("anything")

On Tue, May 8, 2012 at 2:08 AM, rudy cortes <fxje...@gmail.com> wrote:

> hello everyone
> Im writting a custom module in the module dir. i am able to import it but
> when I try to use the Translator T() the page errors out because T is not
> defined.
> what do I need to import to use T in a custom module?
>



-- 

Bruno Rocha
[http://rochacbruno.com.br]

Reply via email to