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
""" Custom Add/Edit forms | |
""" | |
from zope import schema | |
from zope.component import queryAdapter | |
from zope.component import provideAdapter | |
from z3c.form.browser.checkbox import CheckBoxFieldWidget | |
from z3c.form.browser.radio import RadioFieldWidget | |
from plone.dexterity.browser import edit | |
from plone.dexterity.browser import add | |
from eea.facetednavigation.interfaces import ICriteria |
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
"""Helper to trace ZODB object registrations in order to debug CSRF false | |
positives with plone.protect. | |
This helper is intended for DEBUGGING, not for use in production! | |
""" | |
from collections import namedtuple | |
from functools import partial | |
from threading import local | |
from ZODB.utils import u64 |