def setWidgets(self, widgets):

        rowList = {}
        colList = {}
        for widget in widgets:
            startCol = widget.startPosn[1]
            startRow = widget.startPosn[0]
            if startCol in colList:
                colList[startCol] += 1
            else:
                colList[startCol] = 1
            if startRow in rowList:
                rowList[startRow] += 1
            else:
                rowList[startRow] = 1
        if len(colList) > 1:
            self.action = "columns"
        else:
            self.action = "rows"
        self.widgetList = widgets

    # -------------------------------------------------------------------------
@todo: docstring
dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/survey_LayoutBlocks.setWidgets