[Zope3-Users] Handling deletion rights ?

2006-10-06 Thread Thierry Florac
given objects. But what concerning deletion ? How can I prevent a contributor from removing a sub-folder ? Thanks for any help,   Thierry Florac --   Chef de projet intranet/internet   Office National des Forêts - Département Informatique   2, Avenue de Saint-Mandé   75570 PARIS Cedex 12   Mél

[Zope3-Users] Looking for "best practice" in content indexing

2006-10-03 Thread Thierry Florac
best method to get the equivalent of Zope2's "meta_type" indexing, to only get instances of a given class, when queried indexes are applied to several classes (example : I use adapters to handle workflow publication on a wide set of classes, and I want to retrieve contents of a given c

Re: [Zope3-Users] Search engine in Zope content component ?

2006-09-28 Thread Thierry Florac
search criterias Take a look at "zc.catalog" from SVN to get access to a set of additionnal indexes, as well as TextIndexNG to get a complete full-text indexer.   Thierry Florac --   Chef de projet intranet/internet   Office National des Forêts - Département Informatique   2, Avenu

Re: [Zope3-Users] Are there some French Zope user here ?

2006-09-22 Thread Thierry Florac
Le vendredi 22 septembre 2006 à 14:55 +0200, Encolpe Degoute a écrit : > Thierry Florac a écrit : > > Le vendredi 22 septembre 2006 à 11:29 +0200, KLEIN Stéphane a écrit : > >> Are there some French Zope user here ? > >> > >> If the number of french user is

Re: [Zope3-Users] Are there some French Zope user here ?

2006-09-22 Thread Thierry Florac
dea ? > > Regards, > Stephane Hi, I'm here :-) +1 Thierry Florac -- Chef de projet intranet/internet Office National des Forêts - Département Informatique 2, Avenue de Saint-Mandé 75570 PARIS Cedex 12 Mél : [EMAIL PROTECTED] Tél. : +33 01.40.19.5

Re: [Zope3-Users] z3c.extfile and ZEO ?

2006-09-06 Thread Thierry FLORAC
On Wed, 2006-09-06 at 14:20 -0300, David Pratt wrote: Thierry, you may want to consider blobs when they become generally available through zodb. It takes care of the management details for ZEO and files. Is there any planned release date for this feature ? Do you think that it could be i

Re: [Zope3-Users] 4 questions from a newcomer

2006-09-06 Thread Thierry Florac
Le mercredi 06 septembre 2006 à 06:54 -0400, Stephan Richter a écrit : On Tuesday 05 September 2006 11:10, Christophe Combelles wrote: > 2) utf-8 error in i18nfile > -- > Why do I always get an error when I try to add some utf-8 text into an > i18nfile? I just add an i

[Zope3-Users] z3c.extfile and ZEO ?

2006-09-01 Thread Thierry Florac
  Hi, I just discovered the "z3c.extfile" package that I'd like to use in my current Zope3 development. My question is simple : what are the requirements to use this package in a ZEO context with several servers ? Thanks for any advise,   Thierry Florac --   Chef de

[Zope3-Users] How to know where a principal received permissions ?

2006-08-21 Thread Thierry Florac
user was granted a given list of roles ? Many thanks for any advise or help...   Thierry Florac --   Chef de projet intranet/internet   Office National des Forêts - Département Informatique   2, Avenue de Saint-Mandé   75570 PARIS Cedex 12   Mél : [EMAIL PROTECTED]   Tél. : +33 01

[Zope3-Users] Zope3 workflow ?

2006-07-17 Thread Thierry Florac
  Hi, I'm looking for components to support workflows in Zope3. I've read into Zope3 Developer's Handbook a whole chapter about Zope3 workflow components and utilities, but these classes don't seem to be part of my current Zope3 release (3.3.0b1) anymore... Any link ?

Re: [Zope3-Users] Localizing Zope3 content

2006-07-10 Thread Thierry Florac
Le vendredi 07 juillet 2006 à 16:37 +0200, Frank Burkhardt a écrit : > On Fri, Jul 07, 2006 at 03:50:02PM +0200, Thierry Florac wrote: > > >From now, I looked at Localizer and other Zope2 localization products > > which gave me a few ideas, but I'd really like to have

[Zope3-Users] Localizing Zope3 content

2006-07-07 Thread Thierry Florac
s as possible about this problem and the better way it should be handled in Zope3. Thanks for any advise, Thierry Florac -- Chef de projet intranet/internet Office National des Forêts - Département Informatique 2, Avenue de Saint-Mandé 75570 PARIS Cedex 12 Mél : [EMAIL PROT

[Zope3-Users] Splitting ZODB ?

2006-06-20 Thread Thierry FLORAC
Hi, While using Zope2, I used to "split" my ZODB into several parts, using the "old" DBTab product configuration (which was finally included into Zope2). Can I setup this kind of configuration with Zope3 and, if so, how ? Of course, are there also any drawbacks ? Thanks for any information, T

Re: [Zope3-Users] Re: Question about "ForbiddenAttribute"...

2006-06-14 Thread Thierry FLORAC
On Wed, 2006-06-14 at 09:59 +0200, Thierry FLORAC wrote: On Tue, 2006-06-13 at 08:28 +0200, Philipp von Weitershausen wrote: > As said above, 'result' will be security proxied. Security proxies for > lists only allow methods that don't change the lists. result.sort() >

Re: [Zope3-Users] Re: Question about "ForbiddenAttribute"...

2006-06-14 Thread Thierry FLORAC
On Tue, 2006-06-13 at 08:28 +0200, Philipp von Weitershausen wrote: > As said above, 'result' will be security proxied. Security proxies for > lists only allow methods that don't change the lists. result.sort() > would change it. Hence it's forbidden. > > An easy workaround is to use sorted(): >

Re: [Zope3-Users] Question about "ForbiddenAttribute"...

2006-06-14 Thread Thierry FLORAC
On Tue, 2006-06-13 at 08:26 +0200, Marco Mariani wrote: > Thierry FLORAC wrote: > >> name="images.html" > > for=".interfaces.IGalleryFolder" > > allowed_interface=".interfaces.IGalleryPhoto" > > template=&qu

[Zope3-Users] Question about "ForbiddenAttribute"...

2006-06-12 Thread Thierry FLORAC
Hi, I'm trying to build a sample photos management application for Zope-3.2, with the following interfaces and classes : - class IGalleryPhoto(IContainer) ... - class IGalleryContainer(IContainer) (marker interface used for preconditions) - class IGalleryFolder(IGalleryContainer)

Re: [Zope3-Users] Re: IEndRequestEvent question

2006-06-06 Thread Thierry FLORAC
On Tue, 2006-06-06 at 13:32 +0200, Philipp von Weitershausen wrote: > My goal is to use request annotations to reference several objects that > should be treated after the main request process is done, and then to > subscribe to this event to fire these final modifications (so that, for > exa

[Zope3-Users] IEndRequestEvent question

2006-06-05 Thread Thierry FLORAC
  Hi, I'd like to ask several questions about "IEndRequestEvent", like : - when is this event actually fired ? - what can be done exactly after this event is fired (still query components, update database...) ? - if possible, are modifications done after this event integrated into the main

Re: [Zope3-Users] How to prevent several notifications of events ?

2006-06-01 Thread Thierry FLORAC
On Thu, 2006-06-01 at 12:27 +0200, Florent Guillaume wrote: Thierry FLORAC wrote: > I've build a simple adapter that modifies context properties through > annotations ; everything works fine. > In several cases, when some attributes are updated, I do a > "noti

[Zope3-Users] How to prevent several notifications of events ?

2006-05-31 Thread Thierry FLORAC
  Hi, I've build a simple adapter that modifies context properties through annotations ; everything works fine. In several cases, when some attributes are updated, I do a "notify(ObjectModifiedEvent(self.context))" so that several subscribers are called. My problem is then that if several at

Re: [Zope3-Users] Newbie question...

2006-03-21 Thread Thierry FLORAC
On Tue, 2006-03-21 at 17:59 -0500, Stephan Richter wrote: > On Tuesday 21 March 2006 17:39, Thierry FLORAC wrote: > > class IPhotoStorage: > > Well, this needs to inherit Interface. Of course it is ! I just forgot to put the correct syntax for this inherit

Re: [Zope3-Users] Newbie question...

2006-03-21 Thread Thierry FLORAC
On Mon, 2006-03-20 at 19:02 -0500, Stephan Richter wrote: > On Monday 20 March 2006 17:26, Thierry FLORAC wrote: > > Actually, the only working way I found to update my annotations through > > my adapters is always to use "form" directives with the help of a > &g

Re: [Zope3-Users] Problem with SetIndex (from zc.catalog)

2006-03-21 Thread Thierry FLORAC
On Tue, 2006-03-21 at 11:25 -0500, Gary Poster wrote: > Ah yes, my recommendation was made too quickly. The last two should > not have been there. This third stanza would do the trick. > > > permission="zope.ManageServices" > interface="zope.app.catalog.interfac

Re: [Zope3-Users] Problem with SetIndex (from zc.catalog)

2006-03-20 Thread Thierry FLORAC
On Mon, 2006-03-20 at 17:37 -0500, Gary Poster wrote: > On Mar 20, 2006, at 5:14 PM, Thierry FLORAC wrote: > > But I'm just trying to use a "simple" (not subclassed) SetIndex, and > > then to access my catalog "Advanced" management page...! > >

Re: [Zope3-Users] Newbie question...

2006-03-20 Thread Thierry FLORAC
On Mon, 2006-03-20 at 09:45 -0500, Stephan Richter wrote: On Saturday 04 March 2006 10:01, Thierry FLORAC wrote: >  - define "editform" in browser's "configure.zcml" => probably bad ! If the "for" attribute differs from the "schema" attri

Re: [Zope3-Users] Problem with SetIndex (from zc.catalog)

2006-03-20 Thread Thierry FLORAC
On Mon, 2006-03-20 at 10:16 -0500, Stephan Richter wrote: > On Wednesday 15 March 2006 17:45, Thierry FLORAC wrote: > > TraversalError: ( > 0xb46bfd2c>, 'documentCount') > > > > > > "documentCount" seems to be defined into the &

Re: [Zope3-Users] Check permissions

2006-03-17 Thread Thierry FLORAC
Hi, I think that you can also use something like this : from zope.security.management import getInteraction def checkPermission(object, permission='zope.ManageContent'): interaction = getInteraction() return interaction.checkPermission(permissio

[Zope3-Users] Problem with SetIndex (from zc.catalog)

2006-03-15 Thread Thierry FLORAC
Hi, I'm actually using a SetIndex (as defined in "zc.catalog.catalogindex" package). Indexing my documents works perfectly but I still have a little problem : when trying to get to the "Advanced" page of my catalog, a TraversalError exception is raised : 2006-03-15T23:39:27 ERROR SiteError

Re: [Zope3-Users] Can't make site of a BTreeContainer

2006-03-12 Thread Thierry FLORAC
On Sat, 2006-03-11 at 22:54 +0100, Florian Lindner wrote: try to also derive your interface of the object that should become a site from zope.app.component.interfaces.IPossibleSite class IGallery (IGalleryFolder, IPossibleSite): Hope this helps, Yes, it works perfectly ! Just lost a f

[Zope3-Users] Can't make site of a BTreeContainer

2006-03-11 Thread Thierry FLORAC
Hi, I'm currently building a photo management application for which I need to setup local utilities (a catalog...), so I want to make a site of my main folder, which is called a gallery. My current problem is that I can't define the folder as a site manager if it is subclassed from BTreeContain

Re: [Zope3-Users] Principal annotations

2006-03-11 Thread Thierry FLORAC
On Thu, 2006-03-09 at 01:14 -0700, Shane Hathaway wrote: > Your idea of annotating InternalPrincipals rather than Principals seems > to work, but I apparently did something wrong, because edited > annotations don't persist! I can save edits, but when I reload the > page, they're gone. I don't kno

Re: [Zope3-Users] Newbie question...

2006-03-06 Thread Thierry FLORAC
On Tue, 2006-03-07 at 01:20 +0100, Thierry FLORAC wrote: > My code is in fact very simple : > > class IPhotoStorage: > identifier = TextLine(...) > hostname = TextLine(...) > > PhotoStorageKey = "http://w

Re: [Zope3-Users] Newbie question...

2006-03-06 Thread Thierry FLORAC
On Sat, 2006-03-04 at 16:01 +0100, Thierry FLORAC wrote: > I've started to create a few components with Zope-3.2. > Until now, everything is OK for simple content components and a few > utilities. > > I'm actually trying to develop new adapters. > One of these

[Zope3-Users] Newbie question...

2006-03-04 Thread Thierry FLORAC
  Hi, I've started to create a few components with Zope-3.2. Until now, everything is OK for simple content components and a few utilities. I'm actually trying to develop new adapters. One of these adapters is designed to use annotations, but I can't make it working in Zope3 management inter

Re: [Zope3-Users] factory - but object is not initialized

2006-02-13 Thread Thierry FLORAC
On Mon, 2006-02-13 at 16:31 +0100, Egon Frerich wrote: > for a content component I have programmed a factory to be sure numeric > fields have 0.0. If I add an object without numeric values the > introspectors tells me these fields have type "NoneType" and the values > are "None". > > Logging infor

Re: [Zope3-Users] Getting request from subscriber ?

2006-02-13 Thread Thierry FLORAC
On Mon, 2006-02-13 at 12:02 +0100, Thierry FLORAC wrote: > > Hi, > > Probably a simple question... > > I need to extract request's content from an event handler defined via > a subscriber. > "request" doesn't seems to be in a subscriber's conte

[Zope3-Users] Getting request from subscriber ?

2006-02-13 Thread Thierry FLORAC
  Hi, Probably a simple question... I need to extract request's content from an event handler defined via a subscriber. "request" doesn't seems to be in a subscriber's context. So how can I get it ?? Thanks,   Thierry -- This message has been scanned for viruses and dangerous content by

Re: [Zope3-Users] updating objects in ZODB

2006-02-10 Thread Thierry FLORAC
On Fri, 2006-02-10 at 11:15 +0100, Lorenzo Gil Sanchez wrote: How do I update the old objects and add the new attribute to them? I can provide a default value for this attribute if that helps. I know this is a common issue with application updates. I also know that during the development ph

[Zope3-Users] Looking for PathIndex

2006-02-01 Thread Thierry FLORAC
  Hi ! I'm actually trying to create a Zope3 application, where I may be able to make queries : - looking for content in the whole site - looking for content in a given "sub-site" or list of "sub-sites", eventually including all it's "sub-folders". With Zope2, I was commonly using a PathIn

Re: [Zope3-Users] Re: Anybody has answers to this? Re: Beginner looking for help...

2006-01-22 Thread Thierry FLORAC
is application for Zope-2.8 or 2.9 to use Five before moving to Zope3 would probably be as painful as rewriting it directly with Zope3... ! Thierry -- pub  1024D/2C0BF19E 2002-02-18 Thierry FLORAC <[EMAIL PROTECTED]> Key fingerprint = DDAB A10C F149 8B95 A954  BBC0 9106 C19F 2C0B F1

<    1   2