[Zope] <znewb101> How to assign and pass a variable as object ? </znewb101>
Jason Cunliffe
Jason Cunliffe" <jasonic@nomadicsltd.com
Sat, 6 May 2000 12:05:31 -0400
Hello
I have an object I want to pass variables to, for example:
<dtml-call "bsdtest002.set('nom','test of bsd object')">
<dtml-var "bsdtest002.get('nom')"><br>
<dtml-call "bsdtest002.set('purpose','Allow persistent access to a bsddb
dictionary object just like a COM object')">
<dtml-var "bsdtest002.get('purpose')"><br>
etc..
works ok :-)
Now I want to abstract the code to allow fast duplication
<dtml-let bsdobj = bsdtest002> or any other name
<dtml-call "bsdobj .set('nom','test of bsd object')">
<dtml-var "bsdobj .get('nom')"><br>
<dtml-call "bsdobj .set('purpose','Allow persistent access to a bsddb
dictionary object just like a COM object')">
<dtml-var "bsdobj .get('purpose')"><br>
</dtml-let>
This does not work. Please can someone help me understand how to pass object
names as variables..
thanks again
- Jason
________________________________________________________________
Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director