Scripts posted recently tagged to dtml in Kelpi

1- 3 of 3.

A profiler for Zope 2 (II)

to profiler zope dtml by nando.quintana

<dtml-let time0="profiler()">
----------------------<dtml-var "time0[1]">----------------------init<br/>
<dtml-let time1="profiler(time0[0])">
----------------------<dtml-var "time1[1]">----------------------point 1<br/>
</dtml-let> <!-- time1 profiler -->

A profiler for Zope 2

to profiler dtml zope python by nando.quintana

now = DateTime()
if datetime == '':
  lap = 0
else:
  lap = 100000 * (now - DateTime(str(datetime)))

Browser detect by dtml

to dtml javascript by nando.quintana

<dtml-let browser="REQUEST['HTTP_USER_AGENT'].split()">
<dtml-if expr="'MSIE' in browser">
   MSIE
<dtml-else>
   NO MSIE
hits counter