On 6/10/05, Dylan Reinhardt <[EMAIL PROTECTED]> wrote:
> I'm seeing some differences between adding objects using the adding
> traverser and using createObject().  Specifically, workflow seems not
> to get set up for the latter (all other factors the same).

Nothing like posting to a list to help you figure out what's wrong.  :-)

I needed to post an ObjectCreateEvent. 

For posterity, this works just great:

from zope.proxy import removeAllProxies
from zope.app.zapi import createObject
from zope.event import notify
from zope.app.event.objectevent import ObjectCreatedEvent

obj_name = 'foo'
my_factory = 'some.valid.factory.name'
newtask = removeAllProxies(createObject(my_factory))
task_container[obj_name] = newtask

Sorry for the noise.

Zope3-users mailing list

Reply via email to