Skip to content

Instantly share code, notes, and snippets.

View djowett's full-sized avatar

Daniel Jowett djowett

View GitHub Profile
from five import grok
from plone.directives import dexterity, form
from zope import schema
from zope.schema.interfaces import IContextSourceBinder
from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
from zope.interface import invariant, Invalid
from z3c.form import group, field
@djowett
djowett / configure.zcml
Last active August 29, 2015 14:07
z3cform portlet example
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:plone="http://namespaces.plone.org/plone"
xmlns:i18n="http://namespaces.zope.org/i18n"
xmlns:five="http://namespaces.zope.org/five"
i18n_domain="your.package">
<include package="plone.app.portlets"/>
<!-- I think these lines /could/ also help get rid of a nasty