Re: [Zope-CMF] Should object paste check FTI?

2013-01-11 Thread Wichert Akkerman
On Jan 11, 2013, at 16:11 , yuppie wrote: > Hi! > > > Wichert Akkerman wrote: >>> PortalFolderBase overrides _verifyObjectPaste to add some extra checks >>> on top of OFS's CopyContainer to check if content may be pasted: it >>> copies the permi

Re: [Zope-CMF] Should object paste check FTI?

2013-01-11 Thread Wichert Akkerman
On Jan 11, 2013, at 14:20 , Wichert Akkerman wrote: > PortalFolderBase overrides _verifyObjectPaste to add some extra checks on top > of OFS's CopyContainer to check if content may be pasted: it copies the > permission checking (why doesn't it call the base class for that

[Zope-CMF] Should object paste check FTI?

2013-01-11 Thread Wichert Akkerman
PortalFolderBase overrides _verifyObjectPaste to add some extra checks on top of OFS's CopyContainer to check if content may be pasted: it copies the permission checking (why doesn't it call the base class for that?) and adds code to check for allowed types. There is one check missing there that

Re: [Zope-CMF] [dev] member data - a small proposal

2011-07-28 Thread Wichert Akkerman
Hi Yuppie, On 07/28/2011 01:32 PM, yuppie wrote: > Hi! > > > This is the current list of member data properties added by default: > > 'email', 'portal_skin', 'listed', 'login_time', 'last_login_time' > > > On CMF trunk I would like to > > - add 'fullname' to that default list +1 > - show ful

Re: [Zope-CMF] GenericSetup global registries

2011-03-09 Thread Wichert Akkerman
On 3/9/11 15:03 , Hanno Schlichting wrote: > On Wed, Mar 9, 2011 at 3:00 PM, Wichert Akkerman wrote: >> You really want to use the ZCA for every occurance of a string->object >> mapping? Really? > > As long as Zope doesn't have a central configuration registry like &g

Re: [Zope-CMF] GenericSetup global registries

2011-03-09 Thread Wichert Akkerman
On 3/9/11 14:41 , Laurence Rowe wrote: > On 8 March 2011 16:26, Wichert Akkerman wrote: >> On 2011-3-8 17:08, Godefroid Chapelle wrote: >>> Hello, >>> >>> GenericSetup has global registries for profiles and steps. >>> >>> They are a PITA whe

Re: [Zope-CMF] GenericSetup global registries

2011-03-08 Thread Wichert Akkerman
On 2011-3-8 17:43, Godefroid Chapelle wrote: > Le 08/03/11 17:26, Wichert Akkerman a écrit : >> On 2011-3-8 17:08, Godefroid Chapelle wrote: >>>> Hello, >>>> >>>> GenericSetup has global registries for profiles and steps. >>>> >

Re: [Zope-CMF] GenericSetup global registries

2011-03-08 Thread Wichert Akkerman
simple list of hooks indexed by name, and the ZCA is massive overkill for that purpose and very painful to introspect. Wichert. -- Wichert AkkermanIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. _

Re: [Zope-CMF] GenericSetup import and export step registries

2011-03-05 Thread Wichert Akkerman
On 3/5/11 09:47 , Vincent Fretin wrote: > On Wed, Mar 2, 2011 at 3:13 PM, Godefroid Chapelle <mailto:got...@bubblenet.be>> wrote: > > Le 02/03/11 15:04, Wichert Akkerman a écrit : > > None. The initial implementation only had local registries, but thei

Re: [Zope-CMF] GenericSetup import and export step registries

2011-03-02 Thread Wichert Akkerman
On 3/2/11 15:03 , Godefroid Chapelle wrote: > Le 02/03/11 15:01, Wichert Akkerman a écrit : >> On 3/2/11 14:59 , Godefroid Chapelle wrote: >>> Hi, >>> >>> I have been looking at GenericSetup tool.py. >>> >>> The order in which globa

Re: [Zope-CMF] GenericSetup import and export step registries

2011-03-02 Thread Wichert Akkerman
On 3/2/11 14:59 , Godefroid Chapelle wrote: > Hi, > > I have been looking at GenericSetup tool.py. > > The order in which global and local registries are queried is different > in getImportStep and getExportStep on one side and in > getImportStepMetadata and getExportStepMetadata on the other side.

Re: [Zope-CMF] SVN: Products.CMFCore/branches/2.2/Products/CMFCore/exportimport/content.py remove type check that seem useless

2011-01-13 Thread Wichert Akkerman
On 1/13/11 14:01 , Godefroid Chapelle wrote: > > > Le 13/01/11 12:07, Wichert Akkerman a écrit : >> On 1/13/11 12:04 , Godefroid Chapelle wrote: >>> Hi, >>> >>> I have fixed an exportimport bug on branch 2.2 : see tests in revision >>> 119560.

Re: [Zope-CMF] SVN: Products.CMFCore/branches/2.2/Products/CMFCore/exportimport/content.py remove type check that seem useless

2011-01-13 Thread Wichert Akkerman
On 1/13/11 12:04 , Godefroid Chapelle wrote: > Hi, > > I have fixed an exportimport bug on branch 2.2 : see tests in revision > 119560. Aren't you risking double encoding now? That patch looks like it makes things worse, not better. Wichert. ___ Zope-C

Re: [Zope-CMF] CMF vs. CMF.buildout

2010-08-05 Thread Wichert Akkerman
On 8/5/10 15:07 , yuppie wrote: > Hi! > > > One of these two seems to be redundant: > > http://svn.zope.org/CMF/ > http://svn.zope.org/CMF.buildout/ > > Both have basically the same purpose. CMF.buildout started as a > playground, but meanwhile that 'fork' supersedes CMF. CMF/trunk seems to > be un

Re: [Zope-CMF] Member preferences

2010-07-01 Thread Wichert Akkerman
On 7/1/10 11:37 , yuppie wrote: > Hi Tres! > > > Tres Seaver wrote: >>> Am 30.06.2010, 15:09 Uhr, schrieb Tres >>> Seaver: >>> As a general rule, I would actually prefer that we strip out the keywords currently in the code -- they are CVS-era fossils which no longer add any value in

Re: [Zope-CMF] Member preferences

2010-06-30 Thread Wichert Akkerman
On 6/30/10 16:07 , Charlie Clark wrote: > Am 30.06.2010, 15:09 Uhr, schrieb Tres Seaver: > >> As a general rule, I would actually prefer that we strip out the >> keywords currently in the code -- they are CVS-era fossils which no >> longer add any value in the SVN + eggs world. > > Does this relate

Re: [Zope-CMF] traversal and __before_publishing_traverse__ conflict

2010-02-21 Thread Wichert Akkerman
-21 21:21, Wichert Akkerman wrote: > Apologies for the cross post, but since there are many components > involved here I'm not sure what the right list is. > > Plone uses plone.theme to set an IBrowserSkinType on the request that > matches the currently selected CMF skin. This is

[Zope-CMF] traversal and __before_publishing_traverse__ conflict

2010-02-21 Thread Wichert Akkerman
this that I can see is to make ZPublisher check if a traversal step returns the same object again, and if so skip the __before_publishing_traverse__ hook in that case. This feels like a safe change, but I am not sure if this would break anything. Wichert. -- Wichert AkkermanIt is simple to

[Zope-CMF] Making GenericSetup property import less strict

2010-02-16 Thread Wichert Akkerman
I am running into an interesting problem: it appears to be impossible to write a FTI that works in both CMF 2.1 and 2.2. The problem are content icons: CMF 2.1 requires a content_icon property in the FTI to configure the icon, while CMF 2.2 requires icon_expr. Unfortunately you can not have bot

Re: [Zope-CMF] GenericSetup release?

2010-01-01 Thread Wichert Akkerman
On 2009-12-31 13:09, Jens Vagelpohl wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I noticed that the last release, 1.5.0b1, is over 3 months old. Would > anyone mind if I created a 1.5.0-final release? Please do. Wichert. -- Wichert AkkermanIt is simple to ma

Re: [Zope-CMF] GenericSetup and PluggableAuthService

2009-12-30 Thread Wichert Akkerman
On 2009-12-30 16:19, Jens Vagelpohl wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Wichert Akkerman wrote: >> On 2009-12-30 15:35, Jens Vagelpohl wrote: >>> The reason I thought this list of steps may (should?) change is that for >>> example the Pl

Re: [Zope-CMF] GenericSetup and PluggableAuthService

2009-12-30 Thread Wichert Akkerman
On 2009-12-30 15:35, Jens Vagelpohl wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Wichert Akkerman wrote: >> On 2009-12-30 15:06, Jens Vagelpohl wrote: >>> Separate note: On the "Import" tab I see a dropdown of extension >>> profile

Re: [Zope-CMF] GenericSetup and PluggableAuthService

2009-12-30 Thread Wichert Akkerman
AttributeError: portal_catalog I think that is a bug in importCatalogTool; it should not do anything if portal_catalog does not exist. I'm a bit surprised it tries to do anything at all; do you have a catalog.xml file in your profile perhaps? Wichert. -- Wichert AkkermanIt is simple

Re: [Zope-CMF] GenericSetup and PluggableAuthService

2009-12-30 Thread Wichert Akkerman
the purpose. The list of import steps is global and not per-profile, so that is expected behaviour. For most profiles only a few import steps do any real work, but the setup tool has no way to detect that so all steps are always listed. Wichert. -- Wichert AkkermanIt is simpl