Hello
the auto generated add forms sometimes dispaly a field for the Object Name.
add.pt
<span tal:condition="context/nameAllowed|nothing" tal:omit-tag="">
<b i18n:translate="">Object Name</b>
<input type='text' name='add_input_name'
tal:attributes="value context/contentName" />
This is depended if the container implements IContainerNamesContainer:
app.py
def nameAllowed(self):
"""Return whether names can be input by the user."""
return not IContainerNamesContainer.providedBy(self.context)
I have a Container (implementing IContainer, Interface (via Interface
inheritance) and via ZCML IAttributeAnnotatable and IContentContainer.
On the auto-generated addform in my layer the Object Name is not shown. Why?
Thanks,
Florian
_______________________________________________
Zope3-users mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/zope3-users