[Zope-dev] Zope Tests: 8 OK, 1 Failed

2006-12-01 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Thu Nov 30 12:00:00 2006 UTC to Fri Dec  1 12:00:00 2006 UTC.
There were 9 messages: 9 from Zope Unit Tests.


Test failures
-

Subject: FAILED (failures=2) : Zope-2.8 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Nov 30 21:38:54 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006715.html


Tests passed OK
---

Subject: OK : Zope-2.6 Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Thu Nov 30 21:31:24 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006710.html

Subject: OK : Zope-2.6 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Thu Nov 30 21:32:54 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006711.html

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Thu Nov 30 21:34:24 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006712.html

Subject: OK : Zope-2.7 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Nov 30 21:35:54 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006713.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Thu Nov 30 21:37:24 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006714.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Nov 30 21:40:24 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006716.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Nov 30 21:41:54 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006717.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Nov 30 21:43:24 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006718.html

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


RE: [Zope] How to get the type of an object by dtml

2006-12-01 Thread Christian Steinhauer

 Could anyone help me.. how do I use DTML to return the type of the
object I'm currently working with?

If you want to get the html elements like b p input you should
have a look at javascript - document.getElementsByTagName(p)

you can cominate it with for or while loops or go directly to the objecs
document.getElementsByTagName(p)[0].firstChild.data = new;

- cs 


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How to get the type of an object by dtml

2006-12-01 Thread Jonathan


- Original Message - 
From: Christian Steinhauer [EMAIL PROTECTED]

To: zope@zope.org
Sent: Friday, December 01, 2006 8:50 AM
Subject: RE: [Zope] How to get the type of an object by dtml





Could anyone help me.. how do I use DTML to return the type of the

object I'm currently working with?



I missed the beginning of this thread, but if you are trying to find out the 
basic type (int, float, list etc), you can use the same_type method.

eg.

dtml-let r=2.0
  dtml-if _.same_type(r, 1.0)
found float
  /dtml-if
/dtml-let

same_type will return TRUE if the two parameters are the same type. You can 
use this to test for float, int, list, etc.


hth

Jonathan



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )