[Setup] Re: AttributeError: @@plone - Plone 2.5.3
Maurits van Rees
m.van.rees at zestsoftware.nl
Mon Sep 8 11:48:19 UTC 2008
floseries, on 2008-09-07:
> Maybe you can tell me what is the meaning of "@@plone" in global_defines.pt
> I'm searching for an explanation. I only of an assumption, that this could
> mean the class plone with it's attributes and functions. But this would make
> no sense for me. Even though I'm looking around the documentation of Plone,
> Zope and Python I could not detect any explanation for the meaning of "@@".
@@plone is the browser view defined in the Plone class in
CMFPlone/browser/ploneview.py
It is customary to add '@@' in front of those views. With some
imagination you can see those @@ signs as two glasses or binoculars.
BTW, it is not strictly necessary to have those @@ signs there. In a
template, 'context/plone' would work just as well as
'context/@@plone', but when you have a map or page with id 'plone'
inside this context, then the template machinery would think you were
pointing to that instead of to the view. With @@plone this does not
happen.
--
Maurits van Rees | http://maurits.vanrees.org/
Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]
More information about the Setup
mailing list