Beispiel #1
0
    def add_columns(self, columns, delete_before = False):
        if delete_before:
            for column in self.__columns:
                    db_session.delete(column)

        for column in columns:
            db_session.add(column)
        
        db_session.commit()
Beispiel #2
0
    def add_columns(self, columns, delete_before=False):
        if delete_before:
            for column in self.__columns:
                db_session.delete(column)

        for column in columns:
            db_session.add(column)

        db_session.commit()
Beispiel #3
0
    def add_sorters(self, sorters, delete_before = False):
        if delete_before:
            for sorter in self.__sorters:
                    db_session.delete(sorter)

        for sorter in sorters:
            if sorter.column:
                db_session.add(sorter)

        db_session.commit()
Beispiel #4
0
    def add_groupers(self, groupers, delete_before = False):
        if delete_before:
            for grouper in self.__groupers:
                    db_session.delete(grouper)

        for grouper in groupers:
            if grouper.column:
                db_session.add(grouper)
        
        db_session.commit()
Beispiel #5
0
    def add_sorters(self, sorters, delete_before=False):
        if delete_before:
            for sorter in self.__sorters:
                db_session.delete(sorter)

        for sorter in sorters:
            if sorter.column:
                db_session.add(sorter)

        db_session.commit()
Beispiel #6
0
    def add_groupers(self, groupers, delete_before=False):
        if delete_before:
            for grouper in self.__groupers:
                db_session.delete(grouper)

        for grouper in groupers:
            if grouper.column:
                db_session.add(grouper)

        db_session.commit()
Beispiel #7
0
 def add_view(self, view):
     db_session.add(view)
     db_session.commit()
Beispiel #8
0
 def add_view(self, view):
     db_session.add(view)
     db_session.commit()