Re: [Zope] How to make two racks work under one specialist?
Hi Steve, Here is the skinscript of my experiment(only one rack in the specialist folder): WITH Deliverables.getItem(self.id) COMPUTE Name OTHERWISE LET Name='not available' I though when the 'with' clause fails, the 'otherwise' would fire. Instead, I got the 'notFound' error. I got the same from this version of skinscript: WITH Deliverables.getItem(self.id) COMPUTE Name WITH SELF COMPUTE Name='not available' It seems that the 1st 'with' failure terminates the execution of following clauses rather than passing down. cheers Dirksen __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
Hi Dirksen.. try this: WITH Deliverables.getItem(self.id) COMPUTE name=((RESULT is _.None) and 'none available') or RESULT.name What are you using as the 'load by accessing attribute' attribute? -steve
participants (2)
-
Dirksen -
Steve Spicklemire