Ejemplo n.º 1
0
    def __init__(self, attribute, accessor, *args, **kwargs):
        if not accessor:
            raise TypeError('AccessorColumn needs an accessor argument')

        self.accessor = accessor
        assert callable(self.accessor)
        Column.__init__(self, attribute=attribute, *args, **kwargs)
Ejemplo n.º 2
0
    def __init__(self, attribute, accessor, *args, **kwargs):
        if not accessor:
            raise TypeError('AccessorColumn needs an accessor argument')

        self.accessor = accessor
        assert callable(self.accessor)
        Column.__init__(self, attribute=attribute, *args, **kwargs)
Ejemplo n.º 3
0
 def __init__(self, attribute, title, editor, **kwargs):
     Column.__init__(self,
                     attribute=attribute,
                     title=title,
                     data_type=str,
                     **kwargs)
     self.editor = editor
Ejemplo n.º 4
0
    def __init__(self, attribute, title=None, data_type=None, **kwargs):
        kwargs.setdefault('search_attribute', attribute)

        Column.__init__(self, attribute, title, data_type, **kwargs)

        search_func = kwargs.get('search_func')
        if search_func and not callable(search_func):
            raise TypeError("search_func must be callable")
Ejemplo n.º 5
0
    def __init__(self, attribute, title=None, data_type=None, **kwargs):
        kwargs.setdefault('search_attribute', attribute)

        Column.__init__(self, attribute, title, data_type, **kwargs)

        search_func = kwargs.get('search_func')
        if search_func and not callable(search_func):
            raise TypeError("search_func must be callable")
Ejemplo n.º 6
0
    def __init__(self, attribute, title=None, data_type=None,
                 long_title=None, valid_values=None, search_attribute=None,
                 **kwargs):
        """
        """
        self.long_title = long_title
        # FIXME: This is not being used at the moment
        self.valid_values = valid_values
        self.search_attribute = search_attribute
        self.sensitive = True

        Column.__init__(self, attribute, title, data_type, **kwargs)

        search_func = kwargs.get('search_func')
        if search_func and not callable(search_func):
            raise TypeError("search_func must be callable")
Ejemplo n.º 7
0
    def __init__(self,
                 attribute,
                 title=None,
                 data_type=None,
                 long_title=None,
                 valid_values=None,
                 search_attribute=None,
                 **kwargs):
        """
        """
        self.long_title = long_title
        # FIXME: This is not being used at the moment
        self.valid_values = valid_values
        self.search_attribute = search_attribute
        self.sensitive = True

        Column.__init__(self, attribute, title, data_type, **kwargs)

        search_func = kwargs.get('search_func')
        if search_func and not callable(search_func):
            raise TypeError("search_func must be callable")
Ejemplo n.º 8
0
 def __init__(self, *args, **kwargs):
     Column.__init__(self, *args, **kwargs)
Ejemplo n.º 9
0
 def __init__(self, attribute, title, editor, **kwargs):
     Column.__init__(self, attribute=attribute, title=title,
                     data_type=str, **kwargs)
     self.editor = editor