def is_table(doctype):
 def get_tables():
  return db.sql_list(u'select name from tabDocType where istable=1')
 tables = cache().get_value(u'is_table', get_tables)
 return (doctype in tables)

def is_table ( doctype ) : def get_tables ( ) : return db . sql_list ( u'select name from tabDocType where istable=1' ) tables = cache ( ) . get_value ( u'is_table' , get_tables ) return ( doctype in tables )
returns true if istable property is set for given doctype .