-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into MPMBRWP-19_batch_ac…
…tion_concatenate_annexes
- Loading branch information
Showing
114 changed files
with
5,001 additions
and
2,347 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# File: behaviors.py | ||
# | ||
# GNU General Public License (GPL) | ||
# | ||
|
||
from plone.app.textfield import RichText | ||
from plone.autoform.interfaces import IFormFieldProvider | ||
from plone.directives import form | ||
from plone.supermodel import model | ||
from Products.PloneMeeting.config import PMMessageFactory as _ | ||
from Products.PloneMeeting.widgets.pm_richtext import PMRichTextFieldWidget | ||
from zope.interface import alsoProvides | ||
|
||
|
||
class IAdviceAccountingCommitmentBehavior(model.Schema): | ||
|
||
form.order_before(advice_accounting_commitment='advice_reference') | ||
form.widget('advice_accounting_commitment', PMRichTextFieldWidget) | ||
advice_accounting_commitment = RichText( | ||
title=_(u"title_advice_accounting_commitment"), | ||
required=False, | ||
allowed_mime_types=(u"text/html", )) | ||
|
||
|
||
alsoProvides(IAdviceAccountingCommitmentBehavior, IFormFieldProvider) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:plone="http://namespaces.plone.org/plone" | ||
i18n_domain="PloneMeeting"> | ||
|
||
<include package="plone.behavior" file="meta.zcml" /> | ||
|
||
<plone:behavior | ||
title="Advice accounting commitment field" | ||
description="Add a rich text field to encode advice accounting commitment." | ||
provides=".advice.IAdviceAccountingCommitmentBehavior" /> | ||
|
||
</configure> |
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
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
Oops, something went wrong.