Re: [Zope-dev] [BlueBream] Reg. updating catalog indexes in bluebream

2011-06-24 Thread Joshua Immanuel
On Fri, 2011-06-24 at 00:12 +0200, Thierry Florac wrote: You don't have to subscribe to IContainerModifiedEvent or IObjectModifiedEvent: zope.intid and zope.catalog packages already provide subscribers for these events to automatically handle updates of indexes. What you have to do is just

Re: [Zope-dev] [BlueBream] Reg. updating catalog indexes in bluebream

2011-06-24 Thread Joshua Immanuel
Hello On Fri, 2011-06-24 at 12:17 +0200, Christian Klinger wrote: what do you mean with via zope.formlib AddForms's createAndAdd' method. Do you override this method? If so this is wrong you only have to add a create method which get's called before the object is persisted in the container.

Re: [Zope-dev] [BlueBream] Reg. updating catalog indexes in bluebream

2011-06-24 Thread Christian Klinger
Hi i double checked it: class AddForm(...) def createAndAdd(self, data): ob = self.create(data) zope.event.notify(ObjectCreatedEvent(ob)) return self.add(ob) def create(self, data): raise NotImplementedError( concrete classes must

Re: [Zope-dev] [BlueBream] Reg. updating catalog indexes in bluebream

2011-06-24 Thread Joshua Immanuel
Hello, On Fri, 2011-06-24 at 13:50 +0200, Christian Klinger wrote: So if you create in your add form something like this: class MYAddForm(AddForm): def create(self, data): return MyObject(data) the catalog stuff is done for you. If I override just the 'create' method I

Re: [Zope-dev] [BlueBream] Reg. updating catalog indexes in bluebream

2011-06-24 Thread Joshua Immanuel
On Fri, 2011-06-24 at 19:13 +0530, Joshua Immanuel wrote: If I override just the 'create' method I get the ForbiddenAttribute for 'add' operation on self.context.add(object) in zope.formlib.form.AddFormBase.add method. If I add the zcml config for that class to allow attribute like

Re: [Zope-dev] zope-tests - FAILED: 1, OK: 62

2011-06-24 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [1]FAILED Zope Buildbot / zopetoolkit_win-py2.6 slave-win https://mail.zope.org/pipermail/zope-tests/2011-June/044045.html Proxy error on the buildout page: DNS lookup failure for: tha209.thehealthagency.com. Tres. - --

Re: [Zope-dev] [BlueBream] Reg. updating catalog indexes in bluebream

2011-06-24 Thread Christian Klinger
Hi, sorry i have no idea with AttributeErrors. I use grok which has a different security policy. Christian On Fri, 2011-06-24 at 19:13 +0530, Joshua Immanuel wrote: If I override just the 'create' method I get the ForbiddenAttribute for 'add' operation on self.context.add(object) in

Re: [Zope-dev] [BlueBream] Reg. updating catalog indexes in bluebream

2011-06-24 Thread Joshua Immanuel
Hello Christian, On Fri, 2011-06-24 at 17:58 +0200, Christian Klinger wrote: sorry i have no idea with AttributeErrors. I use grok which has a different security policy. I don't think its a problem related with security policy. Moreover I've configured zcml to use zope.Public permission

[Zope-dev] zope-tests - OK: 53

2011-06-24 Thread Zope tests summarizer
This is the summary for test reports received on the zope-tests list between 2011-06-23 00:00:00 UTC and 2011-06-24 00:00:00 UTC: See the footnotes for test reports of unsuccessful builds. An up-to date view of the builders is also available in our buildbot documentation:

Re: [Zope] CMF -?- Zope

2011-06-24 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/23/2011 01:52 PM, Eric d'Halibut wrote: On 6/23/11, Tres Seaver tsea...@palladion.com wrote: Unpack the CMFCore sdist tarball, e.g.: $ cd /tmp $ wget \

[Zope-CMF] cmf-tests - OK: 4

2011-06-24 Thread CMF tests summarizer
This is the summary for test reports received on the cmf-tests list between 2011-06-23 00:00:00 UTC and 2011-06-24 00:00:00 UTC: See the footnotes for test reports of unsuccessful builds. An up-to date view of the builders is also available in our buildbot documentation: