def match(node):
        if not PloneWidget.match(node):
            return False

        name = PloneWidget(node, node.browser).fieldname
        if not name:
            return False

        return bool(DateTimeWidget(node, node.browser)._field("day"))
Exemple #2
0
    def match(node):
        if not PloneWidget.match(node):
            return False

        return len(node.css('.tableradio-widget-wrapper')) > 0
    def match(node):
        if not PloneWidget.match(node):
            return False

        return len(node.css('.tableradio-widget-wrapper')) > 0
Exemple #4
0
    def match(node):
        if not PloneWidget.match(node):
            return False

        return len(node.css('div.autocompleteInputWidget')) > 0
 def match(node):
     if not PloneWidget.match(node):
         return False
     return bool(node.css('>div.referencewidget'))
    def match(node):
        if not PloneWidget.match(node):
            return False

        return len(node.css(PaternslibDateTimeWidget.field_selector)) == 1
Exemple #7
0
 def match(node):
     if not PloneWidget.match(node):
         return False
     return (len(node.css('.named-file-widget')) > 0 or
             len(node.css('.named-image-widget')) > 0)
Exemple #8
0
 def match(node):
     if not PloneWidget.match(node):
         return False
     return ('ArchetypesFileWidget' in node.classes
             or 'ArchetypesImageWidget' in node.classes)
Exemple #9
0
    def match(node):
        if not PloneWidget.match(node):
            return False

        return len(node.css('table.ordered-selection-field')) > 0