Dear Massimo, Restarting AppEngine seems to have fixed this as well. But now I get an error saying that
> NameError: global name 'db' is not defined How do import db.py onto the module? With Regards, Sathvik On Mon, Nov 7, 2011 at 1:28 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Are you sure this is exactely your code? > > commons.FileSystem().get_file("Testing").split(",") > > On Nov 6, 11:57 am, Sathvik Ponangi <psath...@gmail.com> wrote: > > Hi, > > > > I'm using Web2py (1.99.2_Stable) on GAE (1.5.5). > > > > I have the following class in a module named commons.py: > > > > > class FileSystem(): > > > > > def get_file(self, bash): > > > return db(db.files.bash==bash).select().first() > > > > > I'm trying to invoke this method from my controller as: > > > import commons > > > > commons.FileSystem().get_file("Testing").split(",") > > > > But I get a ticket with the following error: > > > > > AttributeError: FileSystem instance has no attribute 'get_file' > > > > How do I fix this? > > > > With Regards, > > Sathvik > -- Sathvik Ponangi