that snippet duplicates the models, which could lead to maintenance problems.
You could use your existing model with: import os os.chdir('/path/to/web2py/') from gluon.shell import env globals().update(env('you_app_name', import_models=True)) On Sep 18, 8:33 am, Jose <jjac...@gmail.com> wrote: > On 17 sep, 21:44, Bottiger <bottig...@gmail.com> wrote: > > > I need to take snapshots of a websites. This will take a couple > > seconds so I need to run it in a separate process from Web2py. > > > So I am wondering if it is possible to use the DAL inside that > > separate python program so I can update the DB when the snapshot is > > complete. > > Perhaps this [1]? > > Jose > > [1]http://www.web2py.com/AlterEgo/default/show/215 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---