You can also "execute" any script inside of web2py's environment, if you need your models for a script and a website, this way you can keep it DRY.
python web2py.py -S <appname> -M -R /path/to/script.py But if you arn't using web2py, then your method is a sure fire way to getting the glory of the DAL :) -Thadeus On Fri, Mar 5, 2010 at 8:17 AM, mdipierro <[email protected]> wrote: > > > On Mar 5, 1:33 am, compassiontara <[email protected]> wrote: >> I'll probably get flamed for talking about this... > > Hope not. You have a very good example. > Just as a side, you do not necessarily need to copy web2py for the > script to work, just add 'gluon' to sys.path. > > -- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/web2py?hl=en. > > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

