[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Extending Zope
nobody@nowhere.com
nobody@nowhere.com
Tue, 20 Aug 2002 04:54:45 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/CustomZopeObjects.stx#3-59
---------------
You can use Python-based or Perl-based Scripts, and even Z SQL
Methods to implement logic. Your logic objects can call each other,
and can be called from your presentation methods. To create the
*isHungry* method, first create two new properties in the
*ExhibitProperties* property sheet named "last_meal_time" that is of
the type *date* and "isDangerous" that is of the type *boolean*.
This adds two new fields to your Edit view where you can enter the
last time the animal was fed and select whether or not the animal is
dangerous.
% Anonymous User - May 30, 2002 12:06 pm:
You need to enter a date on the last_meal_time property.
Zope 2.5.1 will not let you enter a null value in there.
% Anonymous User - Aug. 20, 2002 4:54 am:
for example, date should be like bellow:
2002/08/20 13:00:00 GMT+9