This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from zope.schema import getFields | |
from zope.interface import providedBy | |
from zope.interface import implementedBy | |
from zope.component import getUtility | |
from zope.component import queryUtility | |
from plone.behavior.interfaces import IBehavior | |
from plone.behavior.interfaces import IBehaviorAssignable | |
from plone.dexterity.interfaces import IDexterityFTI | |
from plone.dexterity.utils import resolveDottedName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# tidy_pt_wrapper lint wrapper for Chameleon and ZPT templates. Written to | |
# run under SublimeLinter, but will probably work elsewhere. | |
# | |
# When run from the command line it invokes tidy-html5 and scrapes and | |
# modifies its stderr output when acting as a filter, e.g. | |
# | |
# tidy_pt_wrapper < some.pt | |
# |