Is _getOb() best way to grab a ref to a particular object?
21 Nov
1999
21 Nov
'99
2:27 p.m.
I need to grab a reference to a particular object in the ZODB from an external method, bypassing acquisition. Is this the right way to do it: def test(self, REQUEST=None): """doc string""" myobj = REQUEST.PARENTS[-1].aTopLevelFolder.anotherFolder._getOb('id_of_myobj') ...do stuff with myobj: myobj.title, myobj.index_html, myobj.property = 123 ...
9656
Age (days ago)
9656
Last active (days ago)
0 comments
1 participants
participants (1)
-
Andrew Wilcox