sure, be glad to :) I can get to it this afternoon.

On May 25, 11:21 am, Massimo Di Pierro <[email protected]>
wrote:
> If you can make the script user optparse, would you mail it to me? I
> happy to replace mine with your improved one.
>
> On May 25, 9:38 am, mart <[email protected]> wrote:
>
>
>
>
>
>
>
> > Massimo,
>
> > this is awesome, thanks!:)
>
> > I wrapped the contents of your main() in a function (used in script,
> > not web) where i can pass in these args:
>
> > model=None      ->  if not None, points to a model. This will
> >                     re-write the model used in script in the
> >                     webApp/applications/models dir (db.py) -
> >                     this lets me share the db between script
> >                     and webApp seamlessly :)
>
> > otherDB=None    -> name the DB, or default to
> >                     'storage.sqlite'
>
> > dbfolder=None   -> specify db folder. if None, use current
> >                       dir
>
> > clean=False     -> if True, will delete all tables, db, log
> >                    (i do this so each build has a fresh new
> >                      SQLite DB)
>
> > truncate=False   -> if True, just truncate, don't delete (i
> >                      use this as well in some places, but now
> >                      makes more sense to use along side your
> >                       script.
>
> > Thanks again,
> > Mart :)
>
> > On May 24, 1:39 am, ron_m <[email protected]> wrote:
>
> > > Great, I was doing this manually, this really helps codify the procedure.
>
> > > The export_to_csv_file and import_from_csv_file routines are the magic 
> > > with
> > > how they fix up all the foreign keys to match the new primary key values.

Reply via email to