[Zope-Checkins] CVS: Zope/lib/python/OFS - ObjectManager.py:1.145.4.3
Casey Duncan
casey_duncan@yahoo.com
Tue, 18 Dec 2001 09:19:14 -0500
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv22392
Modified Files:
Tag: casey-better_put_handling-branch
ObjectManager.py
Log Message:
Added better handling in manage_mkdir for ZClass constructors
=== Zope/lib/python/OFS/ObjectManager.py 1.145.4.2 => 1.145.4.3 ===
raise Unauthorized, 'You are not authorized to add %ss' % mkdir_type
+ # Put the id in title in REQUEST, in case this is a ZClass constructor
+ if REQUEST is not None:
+ REQUEST.set('id', id)
+ REQUEST.set('title', title)
+
# Try calling it
constructor(self, id=id, title=title, REQUEST=REQUEST)