Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #31 Sane fields for Events #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/eestec/portal/content/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,26 @@
from five import grok
from plone.directives import form, dexterity
from zope import schema
from plone.app.textfield import RichText
from zope.interface.declarations import alsoProvides


class IEvent(form.Schema):
"""
"""
title = schema.TextLine(
title=u'Name',
required=True,
)
deadline = schema.Datetime(
title=u'Deadline',
description=u'Deadline to apply to this event',
required=True,
)
description = RichText(
title=u'Description',
required=True,
)

alsoProvides(IEvent, form.IFormFieldProvider)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
<!-- enabled behaviors -->
<property name="behaviors">
<element value="plone.app.dexterity.behaviors.metadata.ICategorization" />
<element value="plone.app.dexterity.behaviors.metadata.IBasic" />
<element value="plone.app.content.interfaces.INameFromTitle" />
<element value="plone.app.versioningbehavior.behaviors.IVersionable" />
</property>
Expand Down