Commit 20ff6a87 authored by Jim Fulton's avatar Jim Fulton

Fixed ornery bug in objectItems.

parent 714ae51f
__doc__="""Object Manager __doc__="""Object Manager
$Id: ObjectManager.py,v 1.42 1998/05/22 22:30:42 jim Exp $""" $Id: ObjectManager.py,v 1.43 1998/07/23 17:16:52 jim Exp $"""
__version__='$Revision: 1.42 $'[11:-2] __version__='$Revision: 1.43 $'[11:-2]
import Persistence, App.Management, Acquisition, App.Undo, Globals import Persistence, App.Management, Acquisition, App.Undo, Globals
from Globals import HTMLFile, HTMLFile from Globals import HTMLFile, HTMLFile
...@@ -157,6 +157,7 @@ class ObjectManager( ...@@ -157,6 +157,7 @@ class ObjectManager(
for ob in self._objects: for ob in self._objects:
if ob['meta_type'] in spec: if ob['meta_type'] in spec:
set.append((ob['id'], getattr(self, ob['id']))) set.append((ob['id'], getattr(self, ob['id'])))
return set
return map(lambda i,s=self: (i['id'], getattr(s,i['id'])), return map(lambda i,s=self: (i['id'], getattr(s,i['id'])),
self._objects) self._objects)
def objectMap(self): def objectMap(self):
...@@ -525,6 +526,9 @@ class ObjectManager( ...@@ -525,6 +526,9 @@ class ObjectManager(
############################################################################## ##############################################################################
# #
# $Log: ObjectManager.py,v $ # $Log: ObjectManager.py,v $
# Revision 1.43 1998/07/23 17:16:52 jim
# Fixed ornery bug in objectItems.
#
# Revision 1.42 1998/05/22 22:30:42 jim # Revision 1.42 1998/05/22 22:30:42 jim
# Moved some DB-related methods from ObjectManager and SimpleItem and stuffed them # Moved some DB-related methods from ObjectManager and SimpleItem and stuffed them
# right into Persistent in Globals. # right into Persistent in Globals.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment