JoseLuis de la Rosa Triviño wrote:
I've just started to use CPSSharedCalendar, mainly I want to customize
styles and some zpt. However CalZope uses ++resource++calendar.css but
this file doesn't exists in portal skins, I can't find it from the zmi,
I know calendar.css and modifying that file works fine but, can somebody
explain what ++resource++ means?
There is a difference between theory and practice here. :-)
Here is the theory:
CPSSharedCalendar uses the new delevopment paradigms of Zope3.
++something++ is a namespace, in this case, the namespace is "resource".
Namespaces are used so that you will get less naming collisions, one of
the problems with Zope2 and CMF.
Resources (as well as views and such) are defined in ZCML files. The
definition of the calendar.css is CalZope/browser/configure.zcml.
<browser:resource
template="calendar.css"
name="calendar.css"
permission="zope.Public"
/>
In theory, you would override this resource by
creating a new Zope Product with a __init__.py, an overrides.zcml with a
similar statement as the one above, and of course the new calendar.css file.
However, the latest released version of CPSSharedCalendar already does
such an override of the calendar.css, and you can only override a
resource once. This bug has been fixed, and will be a part of the next
release.
So therefore, in practice, you need to simply modify the calendar.css in
CPSSharedCalendar. Just remember to take a copy of it before you upgrade. ;)
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel