[Zope] Boolean properties ( Zope 2.5)
Eron Lloyd
elloyd@lancaster.lib.pa.us
04 Sep 2002 11:23:37 -0400
Hi,
Like Python < 2.2.1, boolean values return integer types 1 (true) or 0
(false). In the future, Python will provide boolean objects True and
False. So in a Python script:
if propertyValue == 1:
doSomething()
else:
cancelAction()
Check out the Zope Book (http://www.zope.org/Documentation/ZopeBook/)
for more details.
Eron
On Wed, 2002-09-04 at 10:27, Brian Sullivan wrote:
> I a trying to figure out what values are stored in Boolean typed
> properties of a Zope object in order to display information in and
> retrieve and set information from form checkboxes.
>
> What values are actually set/returned in boolean properties?
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
> ---
> [This E-mail scanned for viruses by Declude Virus]
>
>
--
Eron Lloyd
Technology Coordinator
Lancaster County Library
elloyd@lancaster.lib.pa.us
Phone: 717-239-2116
Fax: 717-394-3083
---
[This E-mail scanned for viruses by Declude Virus]