Using ZClasses programmatically
Hi, can anyone point me to a good ressource how I can handle ZClasses programmatically. I walked through 2 Zope books, but they almost only say something about creating and using ZClasses in the ZMI. What I need is information how I can use the objects in my code. Would Beehive's ZClasses Tutorial by a better point to start off. Is there a way to lookup an object by it's ID like ZODB.lookupObject(ID) to get an entry point für object access. TIA Frank
Frank Stephan writes:
can anyone point me to a good ressource how I can handle ZClasses programmatically. I walked through 2 Zope books, but they almost only say something about creating and using ZClasses in the ZMI. What I need is information how I can use the objects in my code. Would Beehive's ZClasses Tutorial by a better point to start off. You use them the same way you use any other objects:
they have attributes (members/properties and methods). Use can look like as follows: <dtml-with ZInstance> <dtml-var property> <dtml-var method> <dtml-call method> <dtml-var "method(a,1,b)"> .... </dtml-with> You do not find explanations in books because there is nothing special about ZClass usage. Dieter
participants (2)
-
Dieter Maurer -
Frank Stephan