# HG changeset patch # User Thierry Florac # Date 1557761462 -7200 # Node ID 4dd7d89350e0f644a39f7523f9708d7ab1bee2da # Parent 8a0e2bc6419320f73cbea59af61cbb4699690c99 Added attribute to store current form interface diff -r 8a0e2bc64193 -r 4dd7d89350e0 src/pyams_content/shared/common/zmi/types.py --- a/src/pyams_content/shared/common/zmi/types.py Mon May 13 16:08:34 2019 +0200 +++ b/src/pyams_content/shared/common/zmi/types.py Mon May 13 17:31:02 2019 +0200 @@ -579,10 +579,12 @@ class TypedSharedContentPropertiesEditForm(SharedContentPropertiesEditForm): """Typed shared content properties edit form""" + interface = IWfTypedSharedContent + @property def fields(self): - fields = field.Fields(IWfTypedSharedContent).select('title', 'short_name', 'content_url', - 'data_type', 'header', 'description', 'notepad') + fields = field.Fields(self.interface).select('title', 'short_name', 'content_url', + 'data_type', 'header', 'description', 'notepad') fields['title'].widgetFactory = I18nSEOTextLineFieldWidget if not self.context.handle_content_url: fields = fields.omit('content_url')