Last active
April 15, 2020 12:54
-
-
Save gotcha/d2a8abf6c90942153bd367c032da9d14 to your computer and use it in GitHub Desktop.
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
<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" /> |
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
# -*- 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