Re: [SQLObject] Zope Security proxies and SQLObject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ma...> - 2005-12-02 18:16:57
|
On Fri, Dec 02, 2005 at 05:58:40PM +0100, Brian Sutherland wrote: > > > 4. Make security proxies work with the builtin isinstance. > > > > > > Now I don't know how to do 4 > > > > By replacing builtin isinstance with zope.security.proxy.isinstance. But > > this may leads to infinite recursion. > > If you patch the builtin, probably. Also, I am not very fond of patching > builtins. > > > Do you know how > > zope.security.proxy.isinstance is implemented? > > you can see the implementation here (at the bottom): > http://svn.zope.org/Zope3/trunk/src/zope/security/proxy.py?rev=39055&view=markup Look, it saves builtin_isinstance = isinstance! The function is definitley intended to be put into builtin module. Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |