
tseaver at palladion
Feb 8, 2008, 6:17 AM
Post #3 of 5
(931 views)
Permalink
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Charlie Clark wrote: > Dear all, > > at a snail's pace I'm approaching an understanding of the CMF! > Actually, that's not entirely true, but coming from the ZMI world I'm > still learning quite how much there is to learn! > > How do I go about creating a different base as opposed to an extension > profile? eg. A site which only allows Documents and Images > I've sussed that > > <genericsetup:registerProfile > name="charlie" > title="Charlies Site" > description="Profile for a default CMFSite." > provides="Products.GenericSetup.interfaces.EXTENSION" > for="Products.CMFCore.interfaces.ISiteRoot" > /> > > needs the provides directive removing and genericsetup XML files need > creating in the profiles/charlie folder and I can create a site like > this *but* I'm missing something fairly crucial A baseline profile is registered as providing a different interface: provides="Products.GenericSetup.interfaces.BASE" The best way to get such a beast is to export the "all steps" tarball from a working site and unpack in in your profiles directory. > as I get the following error when I try and look at the site: > "You have not created any users in this Zope instance. In order to log > in and manage this Zope instance, you'll need to add an adminstrative > user account" > > NB. this is only for this site - the Zope Instance is fine as are any > sites based on CMFDefault. Apart from the Members folder created by > the setuphandlers.py script I can't see any difference between the two > sites and there profiles although there obviously is. I can't discern from here what would cause that. > Also: does <html metal:use-macro="context/@@standard_macros/page"> in > a browser view template refer to > Products.CMFDefault.skin.five_template ? As a bridge between CMF skins > and browser views? Per $ZOPE210Products/Five/skin/configure.zcml, sort of: that is the only registration in effect for that name in Zope2. The view class, Products.Five.skin.standardmacros.StandardMacros, has a '__getitem__' which actually looks for the name ('page' in this case) in any one of three templates: 'five_template', 'widget_macros', and 'form_macros'. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver [at] palladion Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHrGSU+gerLs4ltQ4RAt0WAJ9kNSnZwOltWq9Ld68bagdqdxpnvgCdE8Fc HHIvlx/9R/qRmATgjTn2iQY= =tNd7 -----END PGP SIGNATURE----- _______________________________________________ Zope-CMF maillist - Zope-CMF [at] lists http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
|