right... hashing it would work ;) thanks (again * 3) Mart :)
On Oct 18, 1:15 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > def table_exists(db,name): > import os > from utils import md5_hash > filename = os.path.join(request.folder,'databases','%s_%s.table' % > (md5_hash(db._uri), tablename)) > return os.path.exists(filename) > > On Oct 18, 11:58 am, mart <msenecal...@gmail.com> wrote: > > > wow... again! that easy? > > > fb87181b96a99be45f5a23f4277867ce_cmdcompileProperties.table > > > so to check this, i just need this (can omit prefix) > > > if *_cmdsearchAndReplaceProperties.table: > > logger('blablabla') > > > thanks (again * 2), > > Mart :) > > > On Oct 18, 12:42 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > Each table web2py has knowledge how corresponds to a file in databases/ > > > *_filename.table > > > > On Oct 18, 11:31 am, mart <msenecal...@gmail.com> wrote: > > > > > I was looking up in the book how migration is done, which seems very > > > > useful. Is there a way check for the existence of tables, and NOT have > > > > them created if not exist? I would like a "does not exist" answer to > > > > simply be that, some sort of False statement and nothing more... As > > > > mentioned in my previous "table question posting" (and you can > > > > probably tell by my way-too-long-postings) I tend to be very verbose > > > > and like to a log and reports on all possible activity (including > > > > which tables got generated/deleted)... > > > > > thanks again, > > > > > Mart ) > >