示例#1
0
 def post_add(self, table):
     try:
         table.fetch_metadata()
     except Exception as e:
         flash(
             "Table [{}] doesn't seem to exist, "
             "couldn't fetch metadata".format(table.table_name), "danger")
     utils.merge_perm(sm, 'datasource_access', table.perm)
示例#2
0
 def post_add(self, table):
     try:
         table.fetch_metadata()
     except Exception as e:
         flash(
         "Table [{}] doesn't seem to exist, "
         "couldn't fetch metadata".format(table.table_name),
         "danger")
     utils.merge_perm(sm, 'datasource_access', table.perm)
示例#3
0
 def post_add(self, datasource):
     datasource.generate_metrics()
     utils.merge_perm(sm, 'datasource_access', datasource.perm)
示例#4
0
 def post_add(self, datasource):
     datasource.generate_metrics()
     utils.merge_perm(sm, 'datasource_access', datasource.perm)