I'm working with ArgoUML/AGX/Plone 4.1 to generate a subclass using "atevent" as the stereotype. How do I remove the inherited "Event body text" field?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
you can set the widget invisible for editing and for viewing.
YourSchema['FieldName'].widget.visible = {'view': 'hidden', 'edit':'hidden' }
回答2:
If the field is required in the original schema, you'll also need
YourSchema['FieldName'].required = False