At 05:51 PM 11/13/00 +0200, Roch'e Compaan wrote:
Should I still set up a rack and set it's storage to the Customer ZClass and add a skinscript method to copy attributes from the Customer specialist?
or
Should I simply write a method for Requester, getRequester, which asks the Customers specialist for a Customer.
Do the former if you need to implement different behavior. Do the latter if Customer already provides the needed interface for a requester. Be careful, however, that you do not mix the interface of Customer and Requester, but have clearly defined them seperately (even if both interfaces may share a method, or one interface is derived from the other.)
Another question:
If I pass an attribute that is not registered with any attributeproviders in a manage_changeProperties call to the object's propertysheet, will that attribute automatically be added on top of the object? Should one explicitly call manage_addProperty?
Yes, it would be necessary for you to add the property, since Zope security ordinarily frowns on setting arbitrary object attributes. :)