27 lines
779 B
Python
27 lines
779 B
Python
from zope import schema
|
|
from zope.interface import implements
|
|
from z3c.relationfield.schema import RelationChoice
|
|
|
|
from plone.formwidget.contenttree import ObjPathSourceBinder
|
|
|
|
from themis.fields import LegisSession
|
|
|
|
from tabellio.agenda.interfaces import MessageFactory as _
|
|
from event import IBaseEvent, BaseEvent
|
|
|
|
|
|
class IParlEvent(IBaseEvent):
|
|
session = LegisSession(title=_(u'Session'))
|
|
order_of_the_day = schema.Text(title=_(u'Order of the day'))
|
|
minutes = RelationChoice(title=_(u'Minutes'), required=False, source=ObjPathSourceBinder())
|
|
# XXX: commission (as a relation list as there can be several ones
|
|
# ("commissions conjointes") ?
|
|
|
|
|
|
class ParlEvent(BaseEvent):
|
|
implements(IParlEvent)
|
|
|
|
def klass(self):
|
|
return 'parlementary-event'
|
|
|