Example #1
0
    def index(self, message='', **params):
        if 'model' in params:
            self.export_model(selected_model=params['model'])

        return {
            'message': message,
            'tables': sorted(model.__name__ for model in Session.all_models())
        }
Example #2
0
    def index(self, message='', **params):
        if 'model' in params:
            self.export_model(selected_model=params['model'])

        return {
            'message': message,
            'tables': sorted(model.__name__ for model in Session.all_models())
        }
Example #3
0
 def index(self, message='', all_instances=None):
     return {
         'message': message,
         'tables': sorted(model.__name__ for model in Session.all_models()),
         'attendees': all_instances
     }
Example #4
0
 def index(self, message='', all_instances=None):
     return {
         'message': message,
         'tables': sorted(model.__name__ for model in Session.all_models()),
         'attendees': all_instances
     }