コード例 #1
0
 def post_add(self, table, flash_message=True):
     table.fetch_metadata()
     create_table_permissions(table)
     if flash_message:
         flash(
             _("The table was created. "
               "As part of this two-phase configuration "
               "process, you should now click the edit button by "
               "the new table to configure it."),
             "info",
         )
コード例 #2
0
 def post_add(  # pylint: disable=arguments-differ
         self,
         item: "TableModelView",
         flash_message: bool = True) -> None:
     item.fetch_metadata()
     create_table_permissions(item)
     if flash_message:
         flash(
             _("The table was created. "
               "As part of this two-phase configuration "
               "process, you should now click the edit button by "
               "the new table to configure it."),
             "info",
         )