[Zope] Broken or fixed?: Zclass, manage_changeProperties or zclass tute

cameron@mail.earth.monash.edu.au cameron@mail.earth.monash.edu.au
Thu, 07 Oct 1999 17:53:19 +1000


Summary:
--------
    instance.manage_changeProperties
  is broken (with no ERROR!) or changed to the more 'obvious':
    instance.propertysheets.cd_info.manage_changeProperties

The tutorial on zclasses doesnt work either the class or the
documentation needs a change.



Longer:
-------
I have been trying to get zclass instances to be changed by dtml
methods as outlined in the tutorials for a couple of days now 
with no luck. Now I know why.......

  zclassinstance.manage_changeProperties({'phone':'666'})

attempts to make the change to the FOLDER containing the zclass
instance, not the instance itself.

  zclassinstance.propertysheets.cd_info.manage_changeProperties({'phone':'1.5'})

works as you would want (it changed the instance value of phone). 


Is there any reason why manage_changeProperties isnt defined for 
the namespace of zclassinstance? (This used to work I recall from a
few zope's back).

(I found this out by adding a phone property to everything on the tree
down to my instance and looking at what changed, so I assume the
folder is the next thing 'up' that contained manage_changeProperties :). 


So...
-----
I dont know enough Zope internals to know how to fix it.

While we are at it, is there doc on the namespace that zope uses for
the various dtml things such as foo, "foo" and "_.foo"? Or is it UTSL?



cheers,
cam

--
 / `Rev Dr' cameron@mail.earth.monash.edu.au    skeptic, virtual goth, poly \
< [+61 3]  9905 4881[w]                  Linux, Unix, python, genetics, nets >
 \ Earth Science, Monash Uni.      http://www.earth.monash.edu.au/~cameron/ /
                      ---------- Random Quote ----------
You ain't learning nothing when you're talking.