> > You can put something like that in models somewhere. > Putting this in models directory will make it execute every single time. I suggest you put it in a separate scripts folder (which is what I have done) and execute it when you need it using :
python web2py.py -S <appname> -M -R applications/<appname> /scripts/<scriptname>.py -Mandar --

