From 0518a5c7ec1a749376eb1f5015ca710324c5db5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 17 Oct 2011 16:53:49 +0200 Subject: [PATCH] add required schema to pointingdocs, to allow editing --- themis/fields/interfaces.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/themis/fields/interfaces.py b/themis/fields/interfaces.py index 464d706..9272e6f 100644 --- a/themis/fields/interfaces.py +++ b/themis/fields/interfaces.py @@ -188,6 +188,20 @@ class IPreviewDocWidget(IWidget): class IPointingDocs(IField): '''Field to display a list of documents pointing to the current one''' + required = schema.Bool( + title=IField['required'].title, + description=IField['required'].description, + default=False) + + default = schema.TextLine( + description=IField['default'].description, + required=False) + + missing_value = schema.TextLine( + title=IField['missing_value'].title, + description=IField['missing_value'].description, + required=False) + class IPointingDocsWidget(IWidget): pass