[Zope] How to make two racks work under one specialist?
Dirksen
dirksen_lau@yahoo.com
Sun, 17 Dec 2000 17:38:20 -0800 (PST)
Hi Steve,
Both racks are set to be loaded by accessing 'id', which, as you guessed right, don't
appear in handling attributes list!
This is the simplified skinscript in maleMemberRack:
WITH getMale(self.id) COMPUTE original_object=RESULT
WITH self.original_object COMPUTE
name=id,
gender=gender,
email=email
getMale is a python method:
member = getMember(id)
if id.gender == 'male':
return member
Things just go opposite direction in femaleMemberRack.
What do you think?
Dirksen
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/