[z3-five] yet more ZCML / template binding trouble
Rob Miller
ra at burningman.com
Wed Jun 15 11:24:38 CEST 2005
ugh, this is frustrating. each time i think i'm going to get it
working, another issue arises to thwart me.
after applying whit's TrustedExpression.py patch, i am able to load the
plone main_template while rendering my fate:addform view. however, i'm
not able to fill any of the slots in main_template. i'm not getting an
error, it's just not rendering my code in the slots. here's a summary
of the setup:
- my custom product has a fate:addform directive in configure.zcml which
registers an addform for my AT content type
- when i browse to this addform, it correctly pulls in and renders
fate's add.pt template
- my product has a custom five_template, specified in overrides.zcml
- the add.pt template is correctly finding my custom five_template as
its primary context... i can define slots in my five_template.pt, and i
can fill those slots from add.pt. when i roll-my-own lightweight "skin"
within five_template.pt, the addform works perfectly, generating an
input form based on the AT schema, and creating an instance of my
content type upon submission
- when i modify my five_template.pt so that it contains a
metal:use-macro="here/main_template/macros/master", the main_template is
found and rendered... HOWEVER, none of my metal:fill-slot attributes are
honored... i end up w/ a nice looking plone site wrapper, but with a
completely empty central content area. this is true even when i just
stick some static text in there... once i call in the main_template, i
no longer have the ability to change the output of the page at all
i've spent hours stepping through the code trying to figure out how this
is all glued together. the time hasn't been wasted; i know a lot more
about the inner workings of interface and adapter bindings now, and
about five's __bobo_traverse__ magic, etc., but i'm no closer to
figuring out what the problem is.
any leads?
-r
More information about the z3-five
mailing list