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 specialist
on the fly and store it's id inside my first object.
Thus I have setup a SkinScript with the following content:
INITIALIZE OBJECT WITH company_address=addresses.createAddress()
WITH addresses.getItem(self.company_address) COMPUTE company_addr=RESULT
STORE company_address IN SELF
The createAddress is called actually and it returns the ID of the new object
(thus the object is created). Unfortunately the id is not stored inside
company_address. After reading the new object again this value is still empty
(and thus also no address object is return by the address specialist). Same happens
when just using some dummy property and filling it with a fixed string. This
So what do I have to do to get it stored?
(the other data which is handled via the default plugins is stored and all the
attributes are defined inside the ZClass..)
Hope, anyone knows how this might be fixed..
communication & design [EMAIL PROTECTED]
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -