[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Using Basic Zope Objects
Wed, 25 Sep 2002 14:50:55 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/BasicObject.stx#2-53
Properties are very useful tools for tagging your Zope objects
with little bits of data or information. In conjunction with
methods and scripts, properties make extending simple objects like
Folders a very powerful technique.
% Anonymous User - Aug. 31, 2002 2:19 am:
You haven't mentioned here that the "selection" and "multiple selection" property types require method names
rather than literal data. Perhaps it would be useful to give an example of a method being used for this task,
even if the example is placed in a chapter on scripting and mentioned here only as a "see the section [name]
for an example".
% Anonymous User - Sep. 25, 2002 2:50 pm:
It is a *very* bad idea to represent money amounts with floats. You'll likely end up with rounding errors!
You'll much better be using longs for that purpose, e.g. counting the cents instead of counting the dollars.