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
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.
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
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
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
-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.
- --
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
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
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: