[Zope] Object reference and the _SetObject() method

Johan Carlsson johanc@torped.se
Mon, 18 Oct 1999 23:07:56 +0200


  Hi,
  I'm playing around a bit with references to objects.

  I just did this:
  - Created a Product "Test" that adds a SimpleItem
    Object (with presistent, aq.implicit, rolemanager).
  - In a instance of "Test" I create a attribute that
    is a reference to another object (DTML Method).
  - I find that the reference survives Cut&Paste and
    ZODB Cache Flushes, and if I delete the original
    DTML Method I still can refer to it through my
    "Test" instance. Nothing really strange about that.

   My questions! 

   Is this correct to do this or can I get my self 
   in trouble doing direct reference in this way?

   What are the roll of the _SetObject() method?
   
   And that is the function of the _objects tuple?

   And what does the _p_changed.

  Thanks in advance,
  Johan Carlsson


  


  

  torped 
  johan carlsson
  birkagatan 9
  113 36 stockholm
  telefon 08-32 31 23
  mobil 070-558 25 24
  fax 08-32 89 47
  johanc@torped.se