[Zope3-dev] Security Proxy/isinstance

2005-12-02 Thread Andres Freund
Hi, I'm working with the combination of Zope3 and sqlobjet over sqlos and discovered a problem (about SecurityProxy as i already asked about in #zope3-dev). Some code in sqlobject is using isinstance() to decide what to do. The problem is, that sometimes sqlobject gets securityProxied

Re: [Zope3-dev] Security Proxy/isinstance

2005-12-02 Thread Dominik Huber
Andres Freund wrote: Hi, I'm working with the combination of Zope3 and sqlobjet over sqlos and discovered a problem (about SecurityProxy as i already asked about in #zope3-dev). Some code in sqlobject is using isinstance() to decide what to do. The problem is, that sometimes sqlobject

Re: [Zope3-dev] Security Proxy/isinstance

2005-12-02 Thread Andres Freund
Hi, Dominik Huber wrote: You can use zapi.isinstance (zope.security.proxy orig. place). This function is useful because it works even if the instance is security proxied. I know that from irc but there are two issues: -Fixing that in foreign code is dirty and error prone. In my own code i

Re: [Zope3-dev] Security Proxy/isinstance

2005-12-02 Thread Jim Fulton
Andres Freund wrote: Hi, Dominik Huber wrote: You can use zapi.isinstance (zope.security.proxy orig. place). This function is useful because it works even if the instance is security proxied. I know that from irc but there are two issues: -Fixing that in foreign code is dirty and error

[Zope3-dev] Re: zope.configuration and ImportErrors

2005-12-02 Thread Florent Guillaume
Rocky Burt wrote: Today it's very hard to debug ImportErrors raise inside modules referenced through a zcml directive, because the ImportError is swallowed an no traceback comes back to the user. Just a ConfigurationError: ('Invalid value for', 'class', Couldn't import some.class, cannot