I noted that my methods were static and all i needed was to do this:

@staticmethod
def quack():
    code


This worked

Thanks anyway for the help


On Thu, Jun 19, 2014 at 7:34 PM, Leonel Câmara <leonelcam...@gmail.com>
wrote:

> Try this in modules
>
> class Duck():
>     def quack(self):
>         return 'Quacks like a duck'
>     def walk(self):
>         return 'Walks like a person'
>
>
> Then in the controller
>
> def data_filters():
>
>     duck = Duck()
>     fils = duck.quack()
>     return dict(fils=fils)
>
>
>
>
>
>
>
>  --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/zWGI68D2VDA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Dr Maurice Waka, MBCHB.
Nairobi

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to