[Zope-dev] Objects that are properties

Roch'e Compaan roche@ybm.co.za
Wed, 8 Nov 2000 16:30:58 +0200


I have a Customer and Address ZClasses based on Dataskin as well as a
CustomerManager specialist.

The Customer ZClass has a external method setAddress:

def setAddress(self, Address)
  self.Address = Address

CustomerManager has a defaultRack and addressRack.
The methods that adds the instance contains this:

<dtml-let newCustomer="newItem(name)">
<dtml-call
"newCustomer.propertysheets.Basic.manage_changeProperties(test=test)">
  <dtml-let address="addressRack.newItem(id)">
     <dtml-call
"address.propertysheets.basic.manage_changeProperties(test=test)">
     <dtml-call "newCustomer.setAddress(address)">
  </dtml-let>
</dtml-let>

and it seems to work fine.

Then to retrieve the Customer addresses I call:

<addressRack.getPersistentItemIDs()">

but there seems to be a problem with permissions because Zope prompts me for
username and password although i'm already working in the management
interface.

Roché