This is an interesting problem, which I struggled with for a few long dreary hour myself. It seems that manage_changeProperties doesn't exist in the Z Class instance itself, and is thus acquired from its parent (the folder). At least that's how I analyze the behaviour. The "workaround for this bug" or "correct way of doing things" (pick a one; I don't know which it is): <!--#call "propertysheets.CDProperties.manage_changeProperties(REQUEST)"--> Substitute CDProperties for the name of your property sheet. It seems to me that manage_changeProperties ought to implemented on Z Classes, as you might not always know which property sheet to address. In most cases, I think, you'll just want to say "put all these properties using the property sheets they belong to". Anybody at DC listening? I already posted a message a week back or so on this topic, and nobody responded (at least that I am aware). -- Alexander Staubo http://www.mop.no/~alex/ "`Ford, you're turning into a penguin. Stop it.'" --Douglas Adams, _The Hitchhiker's Guide to the Galaxy_
-----Original Message----- From: Daniel M. Drucker [mailto:dmd@eco.3e.org]On Behalf Of Daniel M. Drucker Sent: 18. juni 1999 17:59 To: Zope List Subject: [Zope] problem with tutorial?
If I create a folder 'test' under my root folder, in which I make a new 'CD' object called myCD (as described in the Z Classes tutorial), and then create run this bit of DTML in that folder:
<!--#call "myCD.manage_changeProperties({ 'title' : 'Rivers', 'artist' : 'Daniel Drucker', 'description' : 'a piece of dog' })"-->
Instead of myCD's title being changed, the containing folder 'test' gets its title changed to 'Rivers'.
What am I doing wrong here?
Daniel Drucker
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )