[Zope] Using ZClasses programmatically
Dieter Maurer
dieter@handshake.de
Sun, 30 Sep 2001 23:01:37 +0200 (CEST)
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