Are you sure this is exactely your code?

commons.FileSystem().get_file("Testing").split(",")

On Nov 6, 11:57 am, Sathvik Ponangi <[email protected]> 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

Reply via email to