Kai Hoppert wrote at 2004-7-16 10:54 +0200:
>zope2.7.2-RC1
>cmf 1.4.4
>
>i tried and tested a bit around with webdav and noticed that manage_afterAdd is 
>called two times in putting a file into Plone . Yea i know this is not the list for 
>Plone but i think this is more a problem from zope, webdav and cmf. 
>
> File "/var/lib/zope271/lib/python/webdav/NullResource.py", line 110, in PUT
>    ob = factory(name, typ, body)
>
>______________________________________________________________________________
> 
>File "/var/lib/zope271/lib/python/webdav/NullResource.py", line 127, in PUT
>    self.__parent__._setObject(name, ob)
>
>These two lines from the traceback are the mainproblem i think. First manage 
>manage_afterAdd will be called after creating the Object and second it is called 
>after writing the object into zodb. 

I am sure "manage_afterAdd" is only called in "_setObject" (which writes
the object to ZODB -- in some sense; the actual write happens only during
commit). "manage_afterAdd" is not called before "_setObject".

-- 
Dieter
_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to