[z3-five] Re: another newbie cmf/plone integration question...
Philipp von Weitershausen
philipp at weitershausen.de
Mon Jun 13 00:35:27 CEST 2005
Rob Miller wrote:
> Lennart Regebro wrote:
>
>> Which expression causes the error?
>
> the following piece from a tal:define is the culprit:
>
> Iterator python:modules['Products.CMFPlone'].IndexIterator;
>
> the module access is what is being denied.
I'm CC-ing Sidnei. He's obviously got Five and CMF/Plone/AT going and
maybe he can share some input. Maybe this whole issue can be resolved
quickly. In that case we should just make sure to provide docs in the
right place so that this doesn't happen again.
If, however, you've really stumbled upon an error in the software, we'll
have to verify the probelm with a simpler test case. Ideally, we should
have a failing unit test in Five that will indicate whether we have
fixed the problem or not. You think you're up to the task? A simple ZPT
in Five.browser.tests that imports some class from another test module
(e.g. Five.browser.tests.importtest, which has been allowed with
allowed_module, of course) should suffice. The test itself should go
into test_pages.py.
>> Doesn't Plone use stadrad_template/macros/master? (if it does you can
>> simply use CMFonFives template...)
>
>
> plone has it's own main_template with a master macro, yes. but i AM
> using CMFonFive's template, that's how i'm getting the error. as i
> said, the problem seems to be related to the 'container' variable being
> bound to an instance of SimpleViewClass; either the SimpleViewClass
> instance needs to be wrapped in a Z2-style implicit acquisition context,
> or the container binding needs to changed to actually be the container
> within which the view is being rendered, i think, but i have no idea how
> to go about accomplishing either of these.
Not sure whether its the 'container'. Could be, I never see through Z2
security. Maybe you can answer this question for me: What's the
'container' on a ZPT stored in portal_skins/<layer_name>/?
Best regards,
Philipp
More information about the z3-five
mailing list