[Zope3-Users] Question about z3c:layout
Simon Elbaz
elbazsimon9 at gmail.com
Wed Jul 15 10:10:37 EDT 2009
Hi,
the question I have is:
when a z3c.form is rendered, how can I tell to zope3 to use
z3c.pagelet.browser.BrowserPagelet.__call__ and not
z3c.form.form.Form.__call__ in order to use the layout defined by a global
z3c:layout in zcml ?
Thanks for your help
Simon
The code part (copied from P. Carduner good tutorial):
---------------------
class IAdamaBrowserLayer(IPageletBrowserLayer, IFormLayer):
"""The pagelet layer test skin."""
class IAdamaBrowserSkin(IDivFormLayer, layer.IAdamaBrowserLayer):
"""The pagelet layer test skin."""
The zcml part:
--------------------
<interface
interface=".skin.IAdamaBrowserSkin"
type="zope.publisher.interfaces.browser.IBrowserSkinType"
name="Adama"
/>
<z3c:layout
for="*"
layer="z3c_auth.layer.IAdamaBrowserLayer"
template="layout.pt"
/>
<z3c:pagelet
name="search.html"
for="zope.app.folder.interfaces.IFolder"
layer="z3c_auth.layer.IAdamaBrowserLayer"
permission="adama.site_access"
class=".login.SearchAddForm"
/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20090715/e3de80e9/attachment.html
More information about the Zope3-users
mailing list