Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: CMF

Alternative base profiles

 

 

Zope cmf RSS feed   Index | Next | Previous | View Threaded


charlie at begeistert

Feb 7, 2008, 1:47 PM

Post #1 of 5 (983 views)
Permalink
Alternative base profiles

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 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.

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?

As always, thanks!

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226



_______________________________________________
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


charlie at begeistert

Feb 8, 2008, 4:58 AM

Post #2 of 5 (934 views)
Permalink
Re: Alternative base profiles [In reply to]

Am 07.02.2008 um 22:47 schrieb Charlie Clark:

> "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"


aha! able to solve this myself: this is the error message you get if
you have absolutely no skins support. Adding the CMFDefault skins to
the profile or your own solves the problem. I assume I can configure
the a view for the site itself?

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226



_______________________________________________
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


tseaver at palladion

Feb 8, 2008, 6:17 AM

Post #3 of 5 (931 views)
Permalink
Re: Alternative base profiles [In reply to]

-----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


tseaver at palladion

Feb 8, 2008, 6:17 AM

Post #4 of 5 (933 views)
Permalink
Re: Alternative base profiles [In reply to]

-----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


charlie at begeistert

Feb 8, 2008, 7:33 AM

Post #5 of 5 (927 views)
Permalink
Re: Re: Alternative base profiles [In reply to]

Am 08.02.2008 um 15:17 schrieb Tres Seaver:

> 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.

Yes, but I needed to get my hands dirty on this so that I understand
things better.

>> 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.


This was because there was absolutely no index_html defined for the
site! Currently experimenting with using CMFDefault and overwriting
stuff as usual.

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226



_______________________________________________
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

Zope cmf RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.