[Zope3-Users] Access to request in content object and object path
maciej.wisniowski at coig.katowice.pl
Wed Jan 24 17:50:21 EST 2007
Is this possible to get
request object in content class. In Zope2 this
was possible with simple self.REQUEST. In Zope3
I tried self.request but I only get errors.
Maybe this is a feature, and I'm not supposed
to access request object from content class?
Another question. I'm trying to write tests
for my content object.
Because I want some caching facilities
I'm using getLocationForCache from
and because of this: zapi.getPath(obj)
In short it is like:
location = zapi.getPath(self)
In the tests I always get location == None.
I'm using doctests like:
>>> test_content = MyClass()
placefulsetup adds some objects like root etc.
but I'm not sure how I should add my object to this.
More information about the Zope3-users