Re: [Zope3-Users] Content cloning ?

2007-01-16 Thread Thierry Florac
Le lundi 15 janvier 2007 à 16:36 +0100, Christian Theune a écrit : > Am Montag, den 15.01.2007, 16:06 +0100 schrieb Thierry Florac: > > Hi, > > > > In an application I'm currently building with Zope3, I need to be able > > to "clone" several kinds of content data. > > While cloning a simple cont

Re: [Zope3-Users] Content cloning ?

2007-01-16 Thread Gary Poster
On Jan 16, 2007, at 6:24 AM, Thierry Florac wrote: In fact, after looking at "zc.copy" package, I finally used the "original" zope.copypastemove package function to duplicate my content because it better feets my needs, without duplicating a set of informations as zc.copy does but just keeping

Re: [Zope3-Users] Re: Empty ZCML file

2007-01-16 Thread Marius Gedminas
On Mon, Jan 15, 2007 at 03:01:38PM -0800, Michael Bernstein wrote: > I've seen plenty of examples of bare directives (and they > obviously work). Aside from the issue I had, is this not considered a > good practice? XML requires a document to have one and only one top-level element. ZCML does not

Re: [Zope3-Users] Content cloning ?

2007-01-16 Thread Marius Gedminas
On Tue, Jan 16, 2007 at 12:24:01PM +0100, Thierry Florac wrote: > Le lundi 15 janvier 2007 à 16:36 +0100, Christian Theune a écrit : > > Am Montag, den 15.01.2007, 16:06 +0100 schrieb Thierry Florac: > > > In an application I'm currently building with Zope3, I need to be able > > > to "clone" sever

Re: [Zope3-Users] Content cloning ?

2007-01-16 Thread Thierry Florac
Le mardi 16 janvier 2007 à 07:27 -0500, Gary Poster a écrit : > On Jan 16, 2007, at 6:24 AM, Thierry Florac wrote: > > The last problem I still have is that some of the informations stored > > into object's annotations have to be indexed into a set of catalogs. > > While these informations are inde

[Zope3-Users] Re: Empty ZCML file

2007-01-16 Thread Philipp von Weitershausen
Michael Bernstein wrote: As I experiment with Zope3 skins, I frequently have various *-overrides.zcml files I am using to switch the default skin. I tried today to comment out the only directive I had in one file (ie. like so: ), and this caused an error. So, it looks like Zope does not like co

[Zope3-Users] recipe for handling of SMTPRecipientsRefused

2007-01-16 Thread Sascha Ottolski
Hi there, the default QueuedMailDelivery is not very smart when it comes to error handling. If a mail with a problematic recipient address made its way in to the queue, it will sit there forever, and the QueueProcessorThread will try to send it out every so often, until one takes manual action

[Zope3-Users] Security related questions

2007-01-16 Thread FB
Hi, is there a way to get all the permissions and roles, the current principal is associated to for a given object? Something like: getAllRoles(context) getAllPermissions(context) Regards, Frank ___ Zope3-users mailing list Zope3-users@zope.org htt

[Zope3-Users] Good event policy for operating on object hierarchies?

2007-01-16 Thread Alec Munro
Hi List, I have an object hierarchy that I import from certain ODT files, and I would like to determine the best way to handle events for importing this hierarchy. Does it make sense to fire one create event for the entire operation, for attaching the hierarchy to the existing object structure, o

Re: [Zope3-Users] Security related questions

2007-01-16 Thread Stephan Richter
On Tuesday 16 January 2007 12:39, FB wrote: > is there a way to get all the permissions and roles, the current principal > is associated to for a given object? > > Something like: > >  getAllRoles(context) >  getAllPermissions(context) No. You would have to write your own code doing that. Note tha

Re: [Zope3-Users] recipe for handling of SMTPRecipientsRefused

2007-01-16 Thread Marius Gedminas
On Tue, Jan 16, 2007 at 06:11:53PM +0100, Sascha Ottolski wrote: > the default QueuedMailDelivery is not very smart when it comes to error > handling. If a mail with a problematic recipient address made its way > in to the queue, it will sit there forever, and the > QueueProcessorThread will try

[Zope3-Users] Can't rename objects

2007-01-16 Thread Florian Lindner
Hello, I have a container object to which I can add and remove object but can not rename them. I suspet my I namechooser to be faulty: from zope.app.container.interfaces import INameChooser from zope.app.container.contained import NameChooser class XGMNameChooser(NameChooser): implements(INa

Re: [Zope3-Users] Can't rename objects

2007-01-16 Thread Christian Theune
Do you have a specific exception with traceback that prevents you from renaming? Christian Am Dienstag, den 16.01.2007, 21:05 +0100 schrieb Florian Lindner: > Hello, > I have a container object to which I can add and remove object but can not > rename them. I suspet my I namechooser to be faulty

Re: [Zope3-Users] Can't rename objects

2007-01-16 Thread Florian Lindner
Am Dienstag, 16. Januar 2007 22:15 schrieb Christian Theune: > Do you have a specific exception with traceback that prevents you from > renaming? So far I have tried it only using the ZMI (logged in as manager). There is no rename button and also if I add another object I can't name it, it's just

Re: [Zope3-Users] Can't rename objects

2007-01-16 Thread Marius Gedminas
On Tue, Jan 16, 2007 at 09:05:59PM +0100, Florian Lindner wrote: > I have a container object to which I can add and remove object but can not > rename them. I suspet my I namechooser to be faulty: That might be true. > from zope.app.container.interfaces import INameChooser > from zope.app.contai

Re: [Zope3-Users] Can't rename objects

2007-01-16 Thread David Johnson
See my post about 2 weeks ago. If you Adapter to IContainerNameChooser rename will not be allowed. Do not adapt to IContainerNameChosoer. On Jan 16, 2007, at 10:37 PM, Florian Lindner wrote: Am Dienstag, 16. Januar 2007 22:15 schrieb Christian Theune: Do you have a specific exception with