Check out the new USENIX Web site.
[ActiveState] Zope method example

These methods list the content of the "f1" folder:

DTML
<dtml-in "f1.objectValues()">
<dtml-var id>: <dtml-var sequence-item>
</dtml-in>
done

PythonMethod
Param: self
for item in self["f1"].objectValues():
    print item.id(), ": ", item
print "done"
return printed

PerlMethod
Param: self
my @res;
for ($self->{f1}->objectValues) {
    push(@res, join(": ", $_->id, $_));
}
join("\n", @res, "done");


 www.ActiveState.com 30/32 ««/\»»