Re: [web2py] How to include T from gluon in custom module

2011-11-24 Thread monotasker
Thanks again Bruno.

Re: [web2py] How to include T from gluon in custom module

2011-11-24 Thread Bruno Rocha
in module from gluon import current class MyClass(object): def __init__(self): self.T = current.T # important only assign "current" objects inside instance methods. Never do it as class attributes or on module top level. On Thu, Nov 24, 2011 at 5:31 PM, monotasker wrote: > I'm wr

[web2py] How to include T from gluon in custom module

2011-11-24 Thread monotasker
I'm writing a plugin and (as recommended) putting my plugin classes in the modules folder. I'm using "from gluon import *" to get gluon classes in the module file, but I'm still getting an error message about translation strings: "global name 'T' is not defined". Do I need to import T from a sp