24 lines
680 B
Python
24 lines
680 B
Python
from five import grok
|
|
from zope import schema
|
|
from zope.interface import implements
|
|
|
|
from plone.directives import form, dexterity
|
|
from plone.dexterity.content import Item
|
|
from z3c.relationfield.schema import RelationChoice
|
|
|
|
from themis.fields import LegisSession
|
|
|
|
from tabellio.documents.interfaces import MessageFactory as _
|
|
|
|
class IDocument(form.Schema):
|
|
title = schema.TextLine(title=_(u'Title'))
|
|
no = schema.TextLine(title=_('Number'))
|
|
session = LegisSession(title=_(u'Session'))
|
|
nodoc = schema.TextLine(title=_('Secondary Number'))
|
|
date = schema.Date(title=_(u'Date'))
|
|
# TODO: authors
|
|
# TODO: type
|
|
|
|
class Document(Item):
|
|
implements(IDocument)
|