[Zope] How do you use acquisition when instantiating an object via a REQUEST.set

Corey Zimmet caz@tcdi.com
Fri, 30 Jun 2000 09:41:48 -0400


I am a relatively new Zope user and I have a simple python Class in a python
product such as:

class Item(Acquisition.Implicit):
  # Just a simple item class

  def __init__(self, id):
    self.id=id

If I instantiate the object in DTML with somthing like this:

<dtml-call "REQUEST.set('item',Item.Item('someid'))">

How can I make the object acquire the current context?  I do not want the
object to be added to any container other than the REQUEST.

Thanks,
Corey