Re: [Zope-dev] initializing objects in ZPatterns

2001-02-22 Thread Steve Alexander
Christian Scholz wrote: Hi! I just encountered another problem with ZPatterns (well not exactly with ZPatterns but the way I use it.. ;-) I have some Specialist with a normal rack which stores data persistently in the ZODB. Everytime I am creating a new object I want to create an object

Re: [Zope-dev] initializing objects in ZPatterns

2001-02-22 Thread Christian Scholz
Hi! I just encountered another problem with ZPatterns (well not exactly with ZPatterns but the way I use it.. ;-) I have some Specialist with a normal rack which stores data persistently in the ZODB. Everytime I am creating a new object I want to create an object of another

Re: [Zope-dev] initializing objects in ZPatterns

2001-02-22 Thread Christian Scholz
Hi! To get company_address stored, you can probably do something like: your_object.manage_changeProperties(company_address=your_object.company_address) or possibly your_object.propertysheets.NameOfSheet.manage_changeProperties... depending on what kind of object you're using. I've now

Re: [Zope-dev] initializing objects in ZPatterns

2001-02-22 Thread Steve Alexander
Christian Scholz wrote: I've now tried WHEN OBJECT ADDED CALL self.propertysheets.data.manage_changeProperties(company_address=self.company_address) which gives me some Unauthorized error on the method call. Give your skinscript an appropriate proxy role. -- Steve Alexander