[Zope] How to make two racks work under one specialist?
Steve Spicklemire
steve@spvi.com
Sat, 16 Dec 2000 08:13:52 -0500 (EST)
Hi Dirksen,
Forgot to mention... you should probably choose some attribute other
than 'id' as the attribute to check for your DataSkin. The 'id' attribute
is always there...
-steve
>>>>> "Steve" == Steve Spicklemire <steve@spvi.com> writes:
Steve> Hi Dirksen,
Steve> Hmm... why not have the query that gets data qualify by
Steve> gender:
Steve> SQL Query: getMemberByGender
Steve> parameters member_id, gender
Steve> select * from members where <dtml-sqltest member_id
Steve> type=string> and <dtml-sqltest gender type=string>
Steve> Then in the SkinScript for maleMemberRack:
Steve> WITH QUERY getMemberByGender(member_id=self.id,
Steve> gender='male') COMPUTE blah, blah, blah....
Steve> -steve
>>>>> "Dirksen" == Dirksen <dirksen_lau@yahoo.com> writes:
Dirksen> I set up two racks in one specialist, one is
Dirksen> maleMemberRack, the other femaleMemberRack. Both are
Dirksen> loaded by accessing attribute id, and have skinscripts to
Dirksen> retrieve data from a db. Suppose the femaleMemberRack
Dirksen> gets loaded first, it finds out from the db that the 'id'
Dirksen> is a male, then how can it pass the process to the
Dirksen> maleMemberRack?
Dirksen> Dirksen
Dirksen> __________________________________________________ Do You
Dirksen> Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions
Dirksen> of Products. http://shopping.yahoo.com/
Dirksen> _______________________________________________ Zope
Dirksen> maillist - Zope@zope.org
Dirksen> http://lists.zope.org/mailman/listinfo/zope ** No cross
Dirksen> posts or HTML encoding! ** (Related lists -
Dirksen> http://lists.zope.org/mailman/listinfo/zope-announce
Dirksen> http://lists.zope.org/mailman/listinfo/zope-dev )