[Zope-dev] ZPatterns: SkinScript semantics

2001-01-20 Thread Steve Alexander
In a SkinScript COMPUTE statement, should I be allowed to supply different names in the OTHERWISE LET section as in the attributes section? For example: WITH some_query() COMPUTE foo,bar,baz OTHERWISE LET foo='There is no foo', spoon='There is no spoon' Looking at the ZPatterns

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Steve Spicklemire
OK I think I found the problem(s): *** Expressions.py 2000/10/18 23:11:55 1.1.1.3 --- Expressions.py 2000/10/31 14:14:09 *** *** 133,139 def eval(self,mapping): """Return the result of looking up/calling the name from 'mapping'. If the object was

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Steve Spicklemire
Hi Joachim, "Joachim" == Joachim Schmitz [EMAIL PROTECTED] writes: Joachim Hi Steve, Joachim that did it, many thanks, how did you debug this ? The debugger is your friend. ;-). Seriously I'd be lost without it: http://www.zope.org/Members/michel/HowTos/TheDebuggerIsYourFriend

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Joachim Schmitz
Hi Steve, On Tue, 31 Oct 2000, Steve Spicklemire wrote: Joachim By the way, it only work if specify a DataSkin derived ZClass Joachim under the Storage tab. Yes... did you attempt to use a 'pure' DataSkin? after your advise not to use a 'pure' DataSkin, I did all the testing

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Phillip J. Eby
At 04:42 PM 10/31/00 +0100, Joachim Schmitz wrote: Hi Steve, On Tue, 31 Oct 2000, Steve Spicklemire wrote: Joachim By the way, it only work if specify a DataSkin derived ZClass Joachim under the Storage tab. Yes... did you attempt to use a 'pure' DataSkin? after your advise not

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-31 Thread Itamar Shtull-Trauring
"Phillip J. Eby" wrote: DataSkin is strictly a mix-in class. Sometimes I forget to remind people of that, and sometimes I even forget it myself. :( DataskinAddons provides a nice DataSkin-derived class for debugging purposes - it has a debug() method that prints out __dict__, and lets you

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-30 Thread Joachim Schmitz
for debugging I inserted in Specialists.py in getItem: return str(self.rackList) -- inserted for rack in self.rackList: item = rack.__of__(self).getItem(key) if item is not None: return item this alway returns an empty list, when calling it from the dtml: dtml-var

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-30 Thread Joachim Schmitz
On Mon, 30 Oct 2000, Steve Spicklemire wrote: Hi Joachim, rackList just refers to the racks in the 'racks' tab of the Specialist. Do you have any racks defined for this Specialist? The rackList is managed magically with the plug-in-group stuff. Yes that's what I found too, but it

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-30 Thread Steve Spicklemire
My Experience with 'raw' DataSkins is that you'll quickly run afoul of the Zope Security system. Using a ZClass that has ZPatterns:DataSkin as a base class avoids this, and gives you an easy way to put a 'user interface' on your objects. -steve "Joachim" == Joachim Schmitz [EMAIL PROTECTED]

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-30 Thread Joachim Schmitz
Hi Steve, I did exactly (hopefully) as you sugested, but the dtml-method fails with: (I moved the SkinScript with first to the top) Error Type: KeyError Error Value: movie_link ... File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object:

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-30 Thread Steve Spicklemire
Hi Joachim, Hmm... I just put all the code in myself... to be *really* sure, and it does work. What do you see for 'current attribute handling' in the Data PlugIns tab of the default rack? I would try to simplify. Take out all the skin script execpt for the one line. -steve "JS" ==

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-29 Thread Joachim Schmitz
On Sat, 28 Oct 2000, Phillip J. Eby wrote: At 05:17 PM 10/28/00 +0200, Joachim Schmitz wrote: select e.event_id as event_id ,e.zeiten as zeiten ,v.firma as firma ,v.tel as tel ,e.movie_id as movie_id ,m.movie_title as movie_title ,m.movie_link as movie_link ,m.movie_text as movie_text

Re: [Zope-dev] ZPatterns + Skinscript

2000-10-28 Thread Phillip J. Eby
At 05:17 PM 10/28/00 +0200, Joachim Schmitz wrote: select e.event_id as event_id ,e.zeiten as zeiten ,v.firma as firma ,v.tel as tel ,e.movie_id as movie_id ,m.movie_title as movie_title ,m.movie_link as movie_link ,m.movie_text as movie_text ,e.datum_von as datum_von ,e.datum_bis as datum_bis

Re: [Zope-dev] ZPatterns: SkinScript discovery

2000-10-04 Thread Phillip J. Eby
Just out of curiosity, did you find this out by reading the draft SkinScript reference documentation on the ZPatterns Wiki? At 03:45 PM 10/4/00 +0100, Steve Alexander wrote: I just found out that you can access all sorts of useful methods in SkinScript from the magical "_" namespace variable.

Re: [Zope-dev] ZPatterns: SkinScript discovery

2000-10-04 Thread Steve Alexander
"Phillip J. Eby" wrote: Just out of curiosity, did you find this out by reading the draft SkinScript reference documentation on the ZPatterns Wiki? No. I just guessed. I think I might have read it in the source the other day too. I'll take a look at the wiki now: