Skip to content

Instantly share code, notes, and snippets.

@gotcha
Last active April 15, 2020 12:54
Show Gist options
  • Save gotcha/d2a8abf6c90942153bd367c032da9d14 to your computer and use it in GitHub Desktop.
Save gotcha/d2a8abf6c90942153bd367c032da9d14 to your computer and use it in GitHub Desktop.
<plone:behavior
name="plone.testbeh.gotcha"
title="Gotcha"
description="Gotchas"
provides=".behaviour.IGotcha" />
<browser:viewlet
name="plone.logo"
for=".behaviour.IGotcha"
manager="plone.app.layout.viewlets.interfaces.IPortalHeader"
template="logo-viewlet.pt"
permission="zope2.View" />
# -*- coding: utf-8 -*-
from plone import schema
from plone.autoform import directives
from plone.autoform.interfaces import IFormFieldProvider
from plone.supermodel import model
from zope.interface import provider
@provider(IFormFieldProvider)
class IGotcha(model.Schema):
"""
"""
gotcha = schema.TextLine(
¦ title=u'Gotchas',
¦ description="got desc",
¦ required=False,
)
model.fieldset(
¦ 'categorization',
¦ fields=['gotcha'],
)
directives.order_after(gotcha='IDublinCore.language')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment