ah ha! thank you very much!!!!! :)
On Jul 4, 11:46 am, Massimo Di Pierro <massimo.dipie...@gmail.com> wrote: > f = Field('myString') > > print f.type > if isinstance(f.type,str) and f.type=='string': .. > if isinstance(f.type,str) and f.type=='text': .. > if isinstance(f.type,str) and f.type=='upload': .. > if isinstance(f.type,str) and f.type=='blob': .. > .. > if not isinstance(f.type,str): # custom field probably > > On Jul 4, 10:17 am, mart <msenecal...@gmail.com> wrote: > > > > > > > > > woops, sorry.... > > > so something like: > > > if isinstance(Field,list): blala > > elif isinstance(Field,str): blala > > else:blabla > > > thanks, > > Mart :) > > > On Jul 4, 11:15 am, mart <msenecal...@gmail.com> wrote: > > > > Can dal guess field type even if not explicit? > > > > I.e. if I have a Field like Field('myString') but a script ends up > > > inserting something that looks like a list, how can I have a default > > > check? > > > > something like: