On 17/06/2011 14:22, Bruno Rocha wrote:
where do I have to write a function lib based on my models and call
it from my controllers only when I need it? I mean without put it in
models??
*This should go in /modules*
# Lets say you wrote a file in /modules/modulex.py
*<modulex.py>*
from gluon import *
do you mean that in this way my module knows all my db table models? right??
thanks Bruno
Manuele
class MyClass(object):
def __init__(self, value):
self.value = value
def my_method(self):
return self.value.upper()