[Zope-CMF] CMF Tests: 12 OK

2008-02-08 Thread CMF Tests Summarizer
Summary of messages to the cmf-tests list.
Period Thu Feb  7 12:00:00 2008 UTC to Fri Feb  8 12:00:00 2008 UTC.
There were 12 messages: 12 from CMF Unit Tests.


Tests passed OK
---

Subject: OK : CMF-1.5 Zope-2.7 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Thu Feb  7 21:38:12 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-February/007899.html

Subject: OK : CMF-1.5 Zope-2.8 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Thu Feb  7 21:39:42 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-February/007900.html

Subject: OK : CMF-1.5 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Feb  7 21:41:12 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-February/007901.html

Subject: OK : CMF-1.6 Zope-2.8 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Thu Feb  7 21:42:43 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-February/007902.html

Subject: OK : CMF-1.6 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Feb  7 21:44:13 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-February/007903.html

Subject: OK : CMF-2.0 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Feb  7 21:45:43 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-February/007904.html

Subject: OK : CMF-2.0 Zope-2.10 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Feb  7 21:47:13 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-February/007905.html

Subject: OK : CMF-2.1 Zope-2.10 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Feb  7 21:48:43 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-February/007906.html

Subject: OK : CMF-2.1 Zope-2.11 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Feb  7 21:50:13 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-February/007907.html

Subject: OK : CMF-trunk Zope-2.10 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Feb  7 21:51:43 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-February/007908.html

Subject: OK : CMF-trunk Zope-2.11 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Feb  7 21:53:13 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-February/007909.html

Subject: OK : CMF-trunk Zope-trunk Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Feb  7 21:54:43 EST 2008
URL: http://mail.zope.org/pipermail/cmf-tests/2008-February/007910.html

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] CMFUid

2008-02-08 Thread Charlie Clark

Dear all,

I'm looking at using CMFUid and I'm not quite sure how to use it: do I  
need to add support for it explicitly in my objects, ie.


from Products.CMFCore.PortalContent import PortalContent

from Products.CMFCore.utils import getUtilityByInterfaceName
from AccessControl import ClassSecurityInfo

class AContentObject(PortalContent):
security = ClassSecurityInfo()

def __init__(self, title=None, description=None):
uid = getUtilityByInterfaceName('portal_uidgenerator')
self.id = uid()

Or is this a case for using an adapter?

from Products.CMFUid.interfaces import IUniqueIdAnnotation?

class AContentObject(PortalContent):
security = ClassSecurityInfo()

def __init__(self, title=None, description=None):
self.id = IUniqueIdAnnotation(self)

which allows behaviour to be configured site wide?

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



___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] Re: Alternative base profiles

2008-02-08 Thread Tres Seaver


-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  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://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@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


Re: [Zope-CMF] Alternative base profiles

2008-02-08 Thread Charlie Clark


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@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


Re: [Zope-CMF] Re: Alternative base profiles

2008-02-08 Thread Charlie Clark


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@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests