Re: [Zope-CMF] script to update permissions

2007-08-02 Thread Charlie Clark


Am 02.08.2007 um 23:17 schrieb David Chelimsky:


I want to write a script that will traverse a directory tree and
update the View permission on any Folder that meets certain criteria.

Suggestions?


This might sound trite but walking a folder hierarchy shouldn't be  
difficult and assuming you give the Script a manager proxy role it  
shouldn't have any trouble adjusting permissions.


However, this might not be what you want. Assuming the folders aquire  
the permissions of the parent, might it not be simpler to adjust the  
permissions of the highest level folder? This would certainly be the  
most manageable.


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] script to update permissions

2007-08-02 Thread Paul Winkler
You could use the ZopeFind method, which folders inherit from
OFS.FindSupport.FindSupport:

http://svn.zope.org/Zope/trunk/lib/python/OFS/FindSupport.py?rev=40300&view=markup


On Thu, Aug 02, 2007 at 04:17:43PM -0500, David Chelimsky wrote:
> I want to write a script that will traverse a directory tree and
> update the View permission on any Folder that meets certain criteria.
> 
> Suggestions?
> ___
> 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

-- 

Paul Winkler
http://www.slinkp.com
___
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] script to update permissions

2007-08-02 Thread David Chelimsky
I want to write a script that will traverse a directory tree and
update the View permission on any Folder that meets certain criteria.

Suggestions?
___
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: Plone needs a release this week

2007-08-02 Thread Wichert Akkerman
Previously yuppie wrote:
> Wichert Akkerman wrote:
> >Previously yuppie wrote:
> >>- The exports created by the new components handler are still flawed, 
> >>ISiteRoot and placeless components are not exported correctly.
> >
> >I'm quite sure I fixed that: I was able to export the components and
> >import them again. Has that been broken since?
> 
> Don't know since when these things are broken, but in the latest code 
> there are these 2 bugs:
> 
> 
> 1.) Exporting the ISiteRoot utility, 'object' should be empty. But I get 
> this instead:
> 
> object="SITE_ID"/>
> 
> 
> 2.) By placeless components I mean something like this:
> 
>   
> 
> The import works fine, but the export looks like this:
> 
>   

I'm quite sure I had both of those working last time I touched GS. I'll
poke at them later this week.

Wichert.

-- 
Wichert Akkerman <[EMAIL PROTECTED]>It is simple to make things.
http://www.wiggy.net/   It is hard to make things simple.
___
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] CMF Tests: 11 OK

2007-08-02 Thread CMF Tests Summarizer
Summary of messages to the cmf-tests list.
Period Wed Aug  1 12:00:00 2007 UTC to Thu Aug  2 12:00:00 2007 UTC.
There were 11 messages: 11 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: Wed Aug  1 21:28:09 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-August/005833.html

Subject: OK : CMF-1.5 Zope-2.8 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Wed Aug  1 21:29:39 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-August/005834.html

Subject: OK : CMF-1.5 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Wed Aug  1 21:31:10 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-August/005835.html

Subject: OK : CMF-1.6 Zope-2.8 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Wed Aug  1 21:32:41 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-August/005836.html

Subject: OK : CMF-1.6 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Wed Aug  1 21:34:12 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-August/005837.html

Subject: OK : CMF-2.0 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Wed Aug  1 21:35:43 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-August/005838.html

Subject: OK : CMF-2.0 Zope-2.10 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Wed Aug  1 21:37:14 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-August/005839.html

Subject: OK : CMF-2.1 Zope-2.10 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Wed Aug  1 21:38:46 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-August/005840.html

Subject: OK : CMF-2.1 Zope-trunk Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Wed Aug  1 21:40:16 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-August/005841.html

Subject: OK : CMF-trunk Zope-2.10 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Wed Aug  1 21:41:48 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-August/005842.html

Subject: OK : CMF-trunk Zope-trunk Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Wed Aug  1 21:43:19 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-August/005843.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


Re: [Zope-CMF] Re: Plone needs a release this week

2007-08-02 Thread Charlie Clark


Am 31.07.2007 um 17:17 schrieb Tres Seaver:

'imperative' indicates that the profile executes arbitrary Python  
code;
 'declarative' indecates that the profile applies external  
configuration

data, read from one or more data files in the profile.

Running two imperative profiles, A and B, may create different effects
based on the order in which they are run, or whether they are run more
than once.  With declarative profiles, OTOH, the state is all captured
in the data file(s), which means there are no ordering  
depencencies, and

it is always "safe" (idempotent) to reapply the step.


Thanks for the explanation, Tres. I still find the term distinction  
somewhat confusing and would suggest "runtime" or "ad hoc" for the  
second one but if it is an established term in software development  
then who am I to rewrite the book! While I have a fairly intense  
dislike of XML I am fully in favour on configuration being kept  
external to an application although I don't see how conflicts: two  
products wishing to configure the same object differently can be  
resolved this way.


However, it seems I am not the only one who been confused by the  
discussion. Would it make sense to move it to a wiki where we have  
use cases, problems, etc? What I am personally missing are examples  
of current "gotchas" and how they can be resolved.


Does http://zope.org/Products/CMF/docs/requirements/proposals/ 
GenericSetup_architectureflect the current status?


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] CMF Collector: Open Issues

2007-08-02 Thread tseaver
The following supporters have open issues assigned to them in this collector
(http://www.zope.org/Collectors/CMF).

Assigned and Open


  tseaver

- "CMF needs View-based TypeInformation",
  [Accepted] http://www.zope.org/Collectors/CMF/437


  yuppie

- "purge_old in runAllImportSteps not working",
  [Accepted] http://www.zope.org/Collectors/CMF/455


Pending / Deferred Issues

- "workflow notify success should be after reindex",
  [Deferred] http://www.zope.org/Collectors/CMF/389


Pending / Deferred Features

- "CMFTopic Does Not Cache",
  [Deferred] http://www.zope.org/Collectors/CMF/295

- "iCal support for CMFCalendar",
  [Pending] http://www.zope.org/Collectors/CMF/487



___
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