def __init__(self, label, default=None, label_msgid=None, visible=True): """ Create a column @param hide Hide column from displaying """ Column.__init__(self, label, default, label_msgid) self.visible = visible
def __init__(self, label, default=None, label_msgid=None, visible=True): """ Create a column @param hide Hide column from displaying """ Column.__init__(self, label, default, label_msgid) self.visible = visible
def __init__(self, label, vocabulary, **kwargs): """ Create a SelectColumn @param vocabulary Vocabulary method name. This method is called from Archetypes instance to get values for dropdown list. """ Column.__init__(self, label, **kwargs) self.vocabulary = vocabulary
def __init__(self, title, vocabulary, default=None): """ Create a SelectColumn @param vocabulary Vocabulary method name. This method is called from Archetypes instance to get values for dropdown list. """ Column.__init__(self, title, default=default) self.vocabulary = vocabulary
def __init__(self, title, helper_text, script, icon): """ Create a HelpColumn """ Column.__init__(self, title) self.helper_text = helper_text self.helper_url = script self.icon = icon
def __init__(self, title, vocabulary, default=None): """ Create a SelectColumn @param vocabulary Vocabulary method name. This method is called from Archetypes instance to get values for dropdown list. """ Column.__init__(self, title, default=default) self.vocabulary = vocabulary
def __init__(self, title, linkClass=""): """ Create a Links @param linkClass CSS class for <a> links in view mode """ Column.__init__(self, title) self.linkClass = linkClass
def __init__(self, title, linkClass=""): """ Create a Links @param linkClass CSS class for <a> links in view mode """ Column.__init__(self, title) self.linkClass = linkClass
def __init__(self, label, helper_text, script, icon, **kwargs): """ Create a HelpColumn """ Column.__init__(self, label, **kwargs) self.helper_text = helper_text self.helper_url = script self.icon = icon
def __init__(self, label, helper_text, script, icon, **kwargs): """ Create a HelpColumn """ Column.__init__(self, label, **kwargs) self.helper_text = helper_text self.helper_url = script self.icon = icon
def __init__(self, title, helper_text, script, icon): """ Create a HelpColumn """ Column.__init__(self, title) self.helper_text = helper_text self.helper_url = script self.icon = icon
def __init__(self, label, **kwargs): """ Create a Links @param linkClass CSS class for <a> links in view mode """ linkClass = kwargs.pop('linkClass', '') Column.__init__(self, label, **kwargs) self.linkClass = linkClass
def __init__(self, label, col_description=None, default=None, default_method=None, date_format="yy/mm/dd", required=False): if required or col_description: # sorry for this trick, but we are using this product with a custom DataGridField 1.6.4 # see https://github.com/RedTurtle/Products.DataGridField/tree/1.6 Column.__init__(self, label, col_description=col_description, default=default, default_method=default_method, required=required) else: Column.__init__(self, label, default=default, default_method=default_method) self.date_format = date_format
def __init__(self, label, col_description=None, default=None, default_method=None, required=False, object_provides=[], surf_site=True, search_site=True): if required or col_description: # sorry for this trick, but we are using this product with a custom DataGridField 1.6.4 # see https://github.com/RedTurtle/Products.DataGridField/tree/1.6 Column.__init__(self, label, col_description=col_description, default=default, default_method=default_method, required=required) else: Column.__init__(self, label, default=default, default_method=default_method) self.object_provides = object_provides self.surf_site = surf_site self.search_site = search_site
def __init__(self, label, default=None, label_msgid=None, trigger_key=None, blur_handler="", focus_handler="", class_no="", class_changed="", class_not_changed=""): """Create a column @param trigger_key """ Column.__init__(self, label, default, label_msgid) self.trigger = trigger_key self.blur_handler = blur_handler and blur_handler + "(event)" or "" self.focus_handler = focus_handler and focus_handler + "(event)" or "" self.class_no = class_no self.class_not_changed = class_not_changed self.class_changed = class_changed
def __init__(self, label, col_description=None, vocabulary=None, vocabulary_factory=None, default=None, default_method=None, required=False): """ Create a SelectColumn @param vocabulary Vocabulary method name. This method is called from Archetypes instance to get values for dropdown list. @param vocabulary_factory Vocabulary utility. """ # do not call base SelectColumn constructor if required or col_description: # sorry for this trick, but we are using this product with a custom DataGridField 1.6.4 # see https://github.com/RedTurtle/Products.DataGridField/tree/1.6 Column.__init__(self, label, col_description=col_description, default=default, default_method=default_method, required=required) else: Column.__init__(self, label, default=default, default_method=default_method) self.vocabulary = vocabulary self.vocabulary_factory = vocabulary_factory
def __init__(self, label, default=None, label_msgid=None, trigger_key=None, blur_handler="", focus_handler="", class_no="", class_changed="", class_not_changed=""): """ Create a column @param trigger_key """ Column.__init__(self, label, default, label_msgid) self.trigger = trigger_key self.blur_handler = blur_handler and blur_handler + "(event)" or "" self.focus_handler = focus_handler and focus_handler + "(event)" or "" self.class_no = class_no self.class_not_changed = class_not_changed self.class_changed = class_changed
def __init__(self, label, default=None, label_msgid=None, column_on_class=None, column_off_class=None, columns=[], invert=False, read_only=None): """Create a column, with adding class attribute depend on value presence for the cell. @param column_on_class set class, which will be added to the <input> tag if columns has value @param column_off_class set class, which will be added to the <input> tag if columns not has value @param columns list of columns names, which values will be checked for set class attribute @param invert - invert the adding class logic @param read_only - check-on/off readOnly attribute for the <input> tag """ Column.__init__(self, label, default, label_msgid) self.column_on_class = column_on_class self.column_off_class = column_off_class self.columns = columns self.invert = invert self.read_only = read_only
def __init__(self, label, default=None, label_msgid=None, column_on_class=None, column_off_class=None, columns=[], invert=False, read_only=None): """ Create a column, with adding class attribute depend on value presence for the cell. @param column_on_class set class, which will be added to the <input> tag if columns has value @param column_off_class set class, which will be added to the <input> tag if columns not has value @param columns list of columns names, which values will be checked for set class attribute @param invert - invert the adding class logic @param read_only - check-on/off readOnly attribute for the <input> tag """ Column.__init__(self, label, default, label_msgid) self.column_on_class = column_on_class self.column_off_class = column_off_class self.columns = columns self.invert = invert self.read_only = read_only