示例#1
0
    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"))
示例#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
示例#4
0
    def match(node):
        if not PloneWidget.match(node):
            return False

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

        return len(node.css(PaternslibDateTimeWidget.field_selector)) == 1
示例#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)
示例#8
0
 def match(node):
     if not PloneWidget.match(node):
         return False
     return ('ArchetypesFileWidget' in node.classes
             or 'ArchetypesImageWidget' in node.classes)
示例#9
0
    def match(node):
        if not PloneWidget.match(node):
            return False

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