[Zope3-dev] using introspector outside of views

Garrett Smith garrett@mojave-corp.com
Tue, 6 May 2003 08:14:45 -0500


Introspector requires a call to setRequest to work. This makes is tough
to use outside of view classes. It seems that such a call should be
optional. E.g. I would have expected __init__ to be:

    def __init__(self, context):
        self.context =3D context
        self.request =3D None
        self.currentclass =3D context.__class__

 -- Garrett