[Zope-Checkins] CVS: Zope2 - ZClass.py:1.52.4.5
Jim Fulton
jim@digicool.com
Sun, 1 Apr 2001 14:56:49 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/ZClasses
In directory korak:/tmp/cvs-serv21832
Modified Files:
Tag: zope-2_3-branch
ZClass.py
Log Message:
Fixed a bug in a recent change that fetched the id of a new
object to fetch the object.
--- Updated File ZClass.py in package Zope2 --
--- ZClass.py 2001/03/30 04:22:57 1.52.4.4
+++ ZClass.py 2001/04/01 18:56:47 1.52.4.5
@@ -539,8 +539,9 @@
except: durl=REQUEST['URL3']
RESPONSE.redirect(durl+'/manage_workspace')
else:
- # get id from obj since btreefolder now picks a random id for IOBtreeFolders
- return folder._getOb(i.id)
+ # An object is not guarenteed to have the id we passed in.
+ id = i.getId()
+ return folder._getOb(id)
index_html=createInObjectManager