add adopted and decreted fields

This commit is contained in:
Frédéric Péters 2011-11-17 13:20:29 +01:00
parent bc24abd92d
commit 378d3c0ec5
2 changed files with 10 additions and 0 deletions

View File

@ -114,6 +114,8 @@ class IDossier(form.Schema):
source=ObjPathSourceBinder()))
histolines = schema.List(title=_(u'Historic Lines'),
value_type=HistoLine())
adopted = schema.Bool(title=_(u'Adopted'), required=False, default=False)
decreted = schema.Bool(title=_(u'Decreted'), required=False, default=False)
class Dossier(Item, BasePublication):
implements(IDossier, IHasRelations)

View File

@ -39,6 +39,12 @@
<index name="interveningPersonsDoc" meta_type="KeywordIndex">
<indexed_attr value="interveningPersonsDoc"/>
</index>
<index name="adopted" meta_type="BooleanIndex">
<indexed_attr value="adopted"/>
</index>
<index name="decreted" meta_type="BooleanIndex">
<indexed_attr value="decreted"/>
</index>
<column value="doctype"/>
<column value="dostype"/>
@ -53,5 +59,7 @@
<column value="session"/>
<column value="topics"/>
<column value="publication_date"/>
<column value="adopted"/>
<column value="decreted"/>
</object>