(self)
HTML class.

        A massive work on positioning the plugin and having it to be displayed
        in a given width is done here. We should be getting the plugin widget
        for the plugin given and based on its' properties (static!) as well as
        on plugin position (which we have from model), we can show the plugin
        with the exact class.
HTML class.
HTML class .
def html_class(self):
        """HTML class.

        A massive work on positioning the plugin and having it to be displayed
        in a given width is done here. We should be getting the plugin widget
        for the plugin given and based on its' properties (static!) as well as
        on plugin position (which we have from model), we can show the plugin
        with the exact class.
        """
        try:
            widget = self.get_widget()
            row, col = self.get_position()
            html_class = [
                'plugin-{0} {1} {2}'.format(
                    self.uid,
                    widget.html_class,
                    ' '.join(self.html_classes)
                ),
                'width-{0}'.format(widget.cols),
                'height-{0}'.format(widget.rows),
                'row-{0}'.format(row),
                'col-{0}'.format(col),
            ]

            return ' '.join(html_class)
        except Exception as err:
            logger.debug(str(err))
def html_class ( self ) : try : widget = self . get_widget ( ) row , col = self . get_position ( ) html_class = [ 'plugin-{0} {1} {2}' . format ( self . uid , widget . html_class , ' ' . join ( self . html_classes ) ) , 'width-{0}' . format ( widget . cols ) , 'height-{0}' . format ( widget . rows ) , 'row-{0}' . format ( row ) , 'col-{0}' . format ( col ) , ] return ' ' . join ( html_class ) except Exception as err : logger . debug ( str ( err ) )